gpt4 book ai didi

android - 如何设置我的应用程序而不是默认的 android 联系人的应用程序

转载 作者:太空狗 更新时间:2023-10-29 15:23:07 26 4
gpt4 key购买 nike

当我单击菜单列表中的联系人图标时,然后打开我的应用程序而不是内置的 andriod。

告诉我我在 list 中做了什么...

请提前帮助我,谢谢。

请给我你的黄金时间..

最佳答案

如果我们查看 Android 中内部 Contacts.apk 的 AndroidManifest,我们会发现这个

<activity .....>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="vnd.android.cursor.dir/person" android:host="contacts"/>
<data android:mimeType="vnd.android.cursor.dir/contact" android:host="com.android.contacts"/>
</intent-filter>
</activity>

当有人查看联系人时,他们希望在他们想要显示的 Activity 中使用哪个 intent 过滤器。您可能需要做一些乱七八糟的事情才能获得您想要的完全正确的效果,但据我了解您的问题,这就是您需要的答案。

关于android - 如何设置我的应用程序而不是默认的 android 联系人的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5457799/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com