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.