what is the Android Email content uri.
form the Email Client source code i get the following Uri
content://com.android.email.provider/body
content://com.android.email.provider/message
content://com.android.email.provider/syncedMessage
content://com.android.email.provider/deletedMessage
content://com.android.email.provider/updatedMessage
content://com.android.email.provider/account
content://com.android.email.provider/accountIdAddToField
content://com.android.email.provider/attachment
content://com.android.email.provider/attachment/message
content://com.android.email.provider/mailbox
content://com.android.email.provider/mailboxIdAddToField
content://com.android.email.provider/hostauth
but not returning cursor when i run the following code.
Uri uri = Uri.parse("content://com.android.email.provider/account");
Cursor cursor = mContext.getContentResolver().query(uri, null, null,null,null);
anyone no how i can access email contents?
Thanks.
The Email program is not part of the SDK. It can be replaced on Android devices. The content providers can change in future versions of Android. The user might not be using that email program in the first place, using Gmail, K-9, or another third party application.
There is a useful discussion of all the reasons preventing email from being accessed via the OS: http://comments.gmane.org/gmane.comp.handhelds.android.devel/137111