I'm trying to  retrieve the password of google account, but getting
security exception.
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator, get_account, manage account.

code :
=============================================================================
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);
}
=============================================================================
Exception:
=============================================================================
08-04 06:38:30.821: WARN/AccountManagerService(2248): caller uid 1000
is different than the authenticator's uid
08-04 06:38:30.821: INFO/parul(2804): exception thrown for account
manager try block
08-04 06:38:30.821: WARN/System.err(2804):
java.lang.SecurityException: caller uid 1000 is different than the
authenticator's uid
08-04 06:38:30.821: WARN/System.err(2804):     at
android.os.Parcel.readException(Parcel.java:1218)
08-04 06:38:30.821: WARN/System.err(2804):     at
android.os.Parcel.readException(Parcel.java:1206)
08-04 06:38:30.821: WARN/System.err(2804):     at
android.accounts.IAccountManager$Stub
$Proxy.getPassword(IAccountManager.java:397)
08-04 06:38:30.821: WARN/System.err(2804):     at
android.accounts.AccountManager.getPassword(AccountManager.java:157)
08-04 06:38:30.821: WARN/System.err(2804):     at
com.samsung.mttwo.service.MtSmsHandler.handleMessage(MtSmsHandler.java:
421)
08-04 06:38:30.826: WARN/System.err(2804):     at
com.samsung.mttwo.service.MtSmsHandler.handleMTSmsReceived(MtSmsHandler.java:
146)
08-04 06:38:30.826: WARN/System.err(2804):     at
com.samsung.mttwo.service.MTSmsReceiver.onReceive(MTSmsReceiver.java:
30)
08-04 06:38:30.826: WARN/System.err(2804):     at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2637)
08-04 06:38:30.826: WARN/System.err(2804):     at
android.app.ActivityThread.access$3100(ActivityThread.java:119)
08-04 06:38:30.826: WARN/System.err(2804):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913)
08-04 06:38:30.826: WARN/System.err(2804):     at
android.os.Handler.dispatchMessage(Handler.java:99)
08-04 06:38:30.826: WARN/System.err(2804):     at
android.os.Looper.loop(Looper.java:123)
08-04 06:38:30.826: WARN/System.err(2804):     at
android.app.ActivityThread.main(ActivityThread.java:4363)
08-04 06:38:30.826: WARN/System.err(2804):     at
java.lang.reflect.Method.invokeNative(Native Method)
08-04 06:38:30.826: WARN/System.err(2804):     at
java.lang.reflect.Method.invoke(Method.java:521)
08-04 06:38:30.826: WARN/System.err(2804):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
08-04 06:38:30.826: WARN/System.err(2804):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
08-04 06:38:30.826: WARN/System.err(2804):     at
dalvik.system.NativeStart.main(Native Method)
=============================================================================

If anybody is aware why i'm getting this problem plz help.
Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

ATTENTION: Android-Beginners will be permanently disabled on August 9 2010. For 
more information about this change, please read [http://goo.gl/xkfl] or visit 
the Group home page.

Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to