google account - SecurityException in getPassword of accountManager in android -


I'm trying to retrieve the Google Account password, but I'm getting a security exception in the string pwd = AccountManager.get (mContext) .getPassword (account). Apart from this, I have given permissions in AndroidManifest.xml to account_manager, aunthenticator, get_account, account management

code:.

  android.accounts.Account [] gaccounts = AccountManager.get (mContext) .getAccounts (); Logs. I ("Perl", "2222 () lane:" + gaccounts.length); (Android.accounts.Account accounts: gaccounts) {string pwd = AccountManager.get (mContext) .getPassword (account); Logs. I ("Peral", "Google PWD:" + PWD); AccountManager.get (mContext) .setPassword (account, empty); String pwdcleared = AccountManager.get (mContext) .getPassword (account); Logs. I ("Perl", "Google pwdcleared:" + pwdcleared); }  

====================================== =======================================

Exception:

08-04 06: 38: 30.821: Warne / Account Manager Service (2248): The collar is different from the UID 1000 certifier UID

08-04 06: 38: 30.821: Information / Parole 2804): Exception Account Manager Threat for Try Block

08-04 06: 38: 30.821: Warning / System.err (2804): java.lang.SecurityException: Callers uid 1000 Authenticator Is different from uid

08-04 06: 38: 30.821: warning / System.err (2804): android.os.Parcel.readException (Parcel.java:1218)

< P> 08-04 06: 38: 30.821: Warning / System.err (2804): andr On oid.os.Parcel.readException (Parcel.java:1206)

08-04 06: 38: 30.821: warning / system. Am (2804): android.accounts.IAccountManager $ Stub $ Proxy.getPassword (IAccountManager.java397) at

08-04 06: 38: 30.821: Warning / System.err (2804): in Android.accounts.AccountManager.getPassword (AccountManager.java:157)

===================================== ========= =======================================

If someone knows why I am helping this problem plz thanks

where I am due to error mismatch configuration, you must deploy in the description


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -