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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -