android - programmatically read incoming/outgoing emails for Google Account (Gmail App installed/not installed) -



android - programmatically read incoming/outgoing emails for Google Account (Gmail App installed/not installed) -

i trying read incoming/outgoing emails google primary account. unable this. followed next source code (it gmail app installed)

contentresolver cr = getcontentresolver(); cursor unread = cr.query(uri.parse("content://gmail-ls/conversations/xxxxxx@gmail.com"), null, "label:^u", null, null); unread.movetofirst(); int subjectidx = unread.getcolumnindex("subject"); { string subject = unread.getstring(subjectidx); } while (unread.movetonext());

taken question stackoverflow (forgot link, bad) isn't working. there way can read incoming/outgoing email primary google account

android gmail android-contentprovider

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -