> 2) OK, similar thing for receiving GMail and Exchange email delivery
> notifications.
>
> First, is there a way to get them via a broadcast receiver?
No.
> I see code floating around that you need to do something like this
> instead:
>
> contentResolver.registerContentObserver(Uri.parse("content://gmail-ls"),
> true, gmailObserver);
> Cursor conversations =
> _contetResolver.query(Uri.parse("content://gmail-ls/conversations/" +
> YourEmailAddress, null, null, null, null);
>
> And the actual conversation messages will be:
> Cursor messages =
> _contetResolver.query(Uri.parse("content://gmail-ls/conversations/"+
> YourEmailAddress + "/"
> + String.valueOf(conversationId)
> + "/messages"), null, null, null, null);
>
> If this is how you have to do it, then that's fine. But where is this
> documented so that I could have figured this out myself?
It is undocumented, unsupported, not recommended, and a really bad idea.
This is hacking into another application, no different than you calling
random exported functions out of an Excel DLL.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html
--
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