I have an app which is implementing my own Authenticator as described in this article. And it works fine as intended. Now I need to get google account from AccountManager and I am doing it this way:
Account[] accounts = AccountManager.get(this).getAccountsByType("com.google");
The problem is that it return an empty array. But when I am using this snippet in my test app without all Authenticator stuff it works like a charm. I can't see where is an actual difference between these cases. Has anybody faced with this issue?