This is strictly for testing purposes. I am not building this into an application.
I am trying to log all the user's saved accounts and passwords
AccountManager accountManager = AccountManager.get(this);
for(Account account : accountManager.getAccounts())
{
System.out.println(account.name + " : " + accountManager.getPassword(account));
}
But I am getting an error
E/AndroidRuntime(11944): java.lang.SecurityException: caller uid XXXXX is different than the authenticator's uid
I have read this question but it doesn't really explain how to get around this problem, just to avoid it, at least I think so.
Is there a way around this issue?
Thanks in advance