-1
private static Account getAccount(AccountManager accountManager) {
Account[] accounts = accountManager.getAccountsByType("com.google");
Account account;
if (accounts.length > 0) {
account = accounts[0];
} else {
account = null;
}
return account;
}
這將返回我的電子郵件只保存或登錄了Gmail應用程序或Gmail ,我想要得到它們保存在其他的所有電子郵件地址應用程序 也像yahoo,rediffmail和其他電子郵件地址。如果anyOne有 做到這一點,請提前幫助謝謝。獲取所有保存的電子郵件地址保存在Android設備編程,而不是GMAIL
權限添加應用程序本身可能無法爲您提供這些信息。 –
但許多其他應用程序在輸入電子郵件地址時顯示所有電子郵件的建議 –