How do you access the user\'s Google Account Id / username in code? I am building an application that will call a web service to store data and I want to identify the ident
Used these lines:
AccountManager manager = AccountManager.get(this); Account[] accounts = manager.getAccountsByType("com.google");
the length of array accounts is always 0.