Hi,
I'm trying to query the e-mails from my Gmail account in source code.
I've tried various combinations for the URI but the cursor returned is
always null. Has anyone managed to retrieve emails programmatically
from Gmail?
Some combinations I tried for the URI are below (as I mentioned above,
the cursor which is returned is always null):
Cursor cur = this.getContentResolver().query(Uri.parse("content://
gmail-ls/conversations/<my_email>@gmail.com"), null, null, null,
null);
Cursor cur = this.getContentResolver().query(Uri.parse("content://
gmail-ls/inbox/<my_email>@gmail.com"), null, null, null, null);
Cursor cur = this.getContentResolver().query(Uri.parse("content://
gmail-ls/<my_email>@gmail.com"), null, null, null, null);
Cursor cur = this.getContentResolver().query(Uri.parse("content://
gmail-ls"), null, null, null, null);
I'd appreciate any experience you could share.
-Ali
--
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
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.