Tuesday, April 6, 2010

Get gmail data on Android

ContentResolver contentResolver = getContentResolver();
Cursor conversations = contentResolver.query(Uri.parse("content://gmail-ls/conversations/" + "leehack@gmail.com"), null, null, null, null);
conversations.moveToFirst();
for (int a = 0; a < conversations.getCount(); a++) {
String subject = conversations.getString(8);
conversations.moveToNext();
}

No comments:

Post a Comment