[英]How to set My Application instead of default android contacts's Application
当我点击菜单列表中的联系人图标然后打开我的应用程序而不是内置的andriod。
告诉我在清单中做了什么......
Plz提前帮助我。
Plz给我你的黄金时间..
如果我们查看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>
当某人查看联系人时,他们在要显示的活动中使用哪个意图过滤器。 你可能不得不做一些麻烦来获得你想要的正确效果,但就我能理解你的问题而言,这就是你需要的答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.