3

如何确定特定的 google 帐户是否是 Google Apps 帐户?

我的手机上有 2 个帐户。

一个普通的 Google acc 和一个 Google Apps 帐户

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);            
}

它打印“com.google”作为两者的类型。

4

2 回答 2

3

我也想知道,但根据@gmail.com 或@googlemail.com 确定,因为许多建议是不负责任的。通过一些入口,用户实际上可以使用 Gmail 以外的电子邮件注册 Google 帐户。试试这个注册入口:https ://accounts.google.com/newaccount?hl=en

于 2012-10-14T07:51:22.057 回答
1

AFAIKaccount.name包含电子邮件,对吧?

Google 帐户(又名 gmail)电子邮件地址包含@gmail.com@googlemail.com. Google Apps 帐户始终具有自定义域。这样你就可以区分它们。

于 2011-09-28T18:53:45.253 回答