I'm adding to this thread because I too was looking at using the Gmail
content provider. I understand it's not documented as part of the API
(and I think it should be) but that hasn't stopped popular apps like
SMS Popup from using and building apps on the undocumented SMS API for
example.

Of course, I haven't been able to get the GMail content provider to
work, every time I try to get a cursor I get back null with code like
this:

Cursor mailCursor = context.getContentResolver().query(Uri.parse
("content://gmail-ls/messages/[email protected]/"), (new String[]
{"_id", "fromAddress", "subject"}), null, null, null);

Has anyone been able to get a cursor from the Gmail provider? Any help
would be appreciated as there are a few of us looking to try this.

> 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

Reply via email to