1
我試圖找回谷歌帳戶的密碼,但得到 安全異常上檢索配置郵件的密碼。如何將Android手機
此外,我已授予androidManifest.xml
到 權限account_manager,aunthenticator,get_account,管理帳戶。
android.accounts.Account[] googleAccount =
AccountManager.get(mContext).getAccounts();
for (android.accounts.Account account: googleAccount) {
String pwd = AccountManager.get(mContext).getPassword(account);
AccountManager.get(mContext).setPassword(account, null);
}
我們是新來這個領域..... u能PLZ闡述或U可以SHW演示代碼,並感謝您的答覆 – apatki 2011-03-22 11:54:23
有這個沒有代碼,因爲它是不可能你想什麼存檔。您無法從自定義代碼中檢索Google帳戶的密碼。只有使用與Google帳戶的身份驗證器相同的UID的應用程序才能調用此方法。其他應用程序將始終會收到錯誤消息。 – Flo 2011-03-22 12:27:17
@Flo u能請說詳細瞭解UID,什麼是得到它的可能性? – CoDe 2012-05-23 06:37:32