tags:

views:

27

answers:

1

I am trying to programmatically open an individual email in the Gmail app on Android.

I know it can be done because the built-in notifications send you to a message when you click on them and there's an app on the market called Gmail Notifier which does it as well.

What I've tried so far:

-send an ACTION_VIEW intent with the message URI as data (failed - cannot resolve URI)

-send an intent to open HtmlConversationActivity in the Gmail package (failed - "requires permission: null")

Would it help to add flags or a category to the intent? If so, which one(s)?

I know that the Gmail app is not well-documented, but it drives me mad that there is definitely a way to do it and I just can't figure it out!

P.S.: This is the first time I'm posting on stackoverflow, so I apologise in advance if I have ignored any conventions.

A: 

I am trying to programmatically open an individual email in the Gmail app on Android.

There are no documented and supported Intents for working with the Gmail application. Developers are not supposed to be tightly integrating with this application -- if Google wanted such integration, they would document and support such integration, as they have done with contacts.

CommonsWare
I knew you'd say that, but if I wanted a company to tell me what I am allowed to do, I'd make apps for iPhone!My point is that it can be done and it would be great to know how. I am willing to accept the risk that one day my app will stop working and my income from that particular app will drop to zero (I'm selling more than one app).
droid_fan