How can I determine if a specific google account is a Google Apps account?
I have 2 accounts on my phone.
a normal Google acc and a Google Apps account
accountManager = AccountManager.get(getApplicationContext());
Account[] accounts = accountManager.getAccounts();
for ( int i = 0; i < accounts.length; i++ )
{
Log.d(TAG, accounts[i].name + " - " + accounts[i].type);
}
It prints "com.google" as type for both.
I was wondering too, but determine based on @gmail.com or @googlemail.com as many suggested isn't accountable. Through some entrances, users can actually register a Google Account using emails other than Gmail. Try this sign-up entrance: https://accounts.google.com/newaccount?hl=en
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With