when I click on contact icon in menu list then open my application instead of in built andriod.
当我点击菜单列表中的联系人图标然后打开我的应用程序而不是在内置的andriod。
just tell me what i do in menifest...
告诉我在清单中做了什么......
Plz help me n thanks in advance.
Plz提前帮助我。
Plz give me your gold time for it..
Plz给我你的黄金时间..
1 个解决方案
#1
0
If we look in the AndroidManifest of the internal Contacts.apk in Android we find this
如果我们查看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>
Which is the intent filter that they use inside the activity they want to show when someone Views a Contact. You may have to do a little messing around to get the exact right effect that you want, but as far as I can understand your question, that is the answer that you need.
当有人查看联系人时,他们在要显示的活动中使用哪个意图过滤器。您可能需要做一些麻烦才能获得您想要的正确效果,但就我能理解您的问题而言,这就是您需要的答案。
#1
0
If we look in the AndroidManifest of the internal Contacts.apk in Android we find this
如果我们查看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>
Which is the intent filter that they use inside the activity they want to show when someone Views a Contact. You may have to do a little messing around to get the exact right effect that you want, but as far as I can understand your question, that is the answer that you need.
当有人查看联系人时,他们在要显示的活动中使用哪个意图过滤器。您可能需要做一些麻烦才能获得您想要的正确效果,但就我能理解您的问题而言,这就是您需要的答案。