问题描述
||
当我单击菜单列表中的联系人图标,然后打开我的应用程序而不是内置的andriod。
告诉我我在做些什么...
请先帮助我,谢谢。
请给我你的黄金时间。
解决方法
如果我们查看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>
他们在某人查看联系人时要显示的活动中使用的意图过滤器。您可能需要做些麻烦才能获得所需的确切正确效果,但是据我所知,这就是您需要的答案。