Hello, I want to have a menu item display in the contact app. I thought this would be easy using an intent-filter but it does not seem to work for me. Maybe my understanding of intent-filters is wrong or maybe this isn't possible. I want a menu item to appear when the user is viewing a contact. Here is my intent-filter:
<activity android:name="com.myapp.intents.Contact" android:label="@string/actContactsMenu"> <intent-filter> <category android:name="android.intent.category.ALTERNATIVE"/> <category android:name="android.intent.category.SELECTED_ALTERNATIVE"/> <category android:name="android.intent.category.DEFAULT" /> <action android:name="com.myapp.intent.action.MyAction" /> <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> When I use this, nothing shows up. I tried adding the read contacts permissions but that didn't help either. Any help would be greatly appreciated, I can't seem to find an example of this but the API says it is possible. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en