Get gmail data on Android

ContentResolver contentResolver = getContentResolver();
Cursor conversations = contentResolver.query(Uri.parse(“content://gmail-ls/conversations/” + “[email protected]”), null, null, null, null);
conversations.moveToFirst();
for (int a = 0; a < conversations.getCount(); a++) {
String subject = conversations.getString(8);
conversations.moveToNext();
}

comments powered by Disqus