Skip to content Skip to sidebar Skip to footer

Android Accountmanager's Getauthtoken Securityexception

i (lets say app 'C' )am trying to get the auth token of an installed app ( say 'S' ) through Android's AccountManager's getAuthToken function. this function is not working as exp

Solution 1:

  1. First go to your implementation of AbstractAuthenticator in app S. Find getAuthToken() implementation. Check, which activity you return as KEY_INTENT. It must be in same app as authenticator (yes, there are ways to launch an activity from another app).
  2. Make sure, you run on a real device, because you must see a "grant permissions" android system screen in that case.
  3. If you come here, than I don't know another reason except some bug. Try totally removing both apps and restarting emulator, then check if problem persists.

Post a Comment for "Android Accountmanager's Getauthtoken Securityexception"