如何確定某個特定的Google帳戶是否爲Google Apps帳戶?列出谷歌應用帳戶
我在我的手機上有2個帳戶。
正常的谷歌ACC和谷歌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」 類型兼而有之。
好的,只是認爲有一個更好的方法來做到這一點 – jakk