我想备份我的Android手机收件箱中收到的所有电子邮件。
我对BackUp Manager有一些基本知识。您能指导我,如何使用BackupManager备份发件人姓名,电子邮件ID和正文的电子邮件?
答案 0 :(得分:0)
得到了答案
AccountManager accountManager = AccountManager.get(this);
Log.e(TAG,"Error"+AccountManager.get(this));
Account account = getAccount(accountManager);
if (account != null) {
Log.d(TAG,"Account"+account.name);
}
Cursor c = null; Uri CONTENT_URI = Uri.parse("content://com.android.email.provider/account");
String RECORD_ID = "_id";
String[] ID_PROJECTION = new String[] {RECORD_ID };
c = getContentResolver().query(CONTENT_URI,ID_PROJECTION,null, null, null);
Log.d(TAG,"Response"+c);