Hi Mark,
I used android.intent.action.SEND action for the approp MIME type to
have the activity chooser for gallery and browser. So I could see my
activity under Share for gallery and Browser.
But for contacts below is the intent filter used:
<activity android:name="ContactTestActivity">
<intent-filter android:label="Contact Test">
<action android:name="android.intent.action.VIEW" />
<category
android:name="android.intent.category.DEFAULT" />
<category
android:name="android.intent.category.ALTERNATIVE" />
<data android:mimeType="vnd.android.cursor.item/
contact" />
</intent-filter>
</activity>
The above code snippet worked in emulator.When I select a contact and
say View Contact, I can see my activity i.e Contact Test and View
Contact options.But the same is not happening in device.
On Jul 20, 6:27 pm, Mark Murphy <[email protected]> wrote:
> On Wed, Jul 20, 2011 at 2:46 AM,Mamz<[email protected]> wrote:
> > I did add custom menu item to Gallery and Browser (menu item will be
> > displayed under Share option).
>
> That is not a "custom menu item". That is an activity chooser.
>
> > I checked in device as well.
> > I could add menu item to contacts and worked in emulator but not
> > working in device.
>
> Then whatever MIME type(s) you are supporting with your
> android.intent.action.SEND <intent-filter> do not match what your
> contacts application is trying to share.
>
> --
> Mark Murphy (a Commons
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en