2011-06-28 14 views

答えて

4

Googleがアンドロイド携帯電話上でアカウントを確認するためのAccountManagerを使用することができます。

AccountManager am = AccountManager.get(getApplicationContext()); 
    Account[] accounts = am.getAccounts(); 

    for (Account account : accounts) { 
    //do something with account 
    } 
+0

この方法を注意してくださいGET_ACCOUNTSランタイム許可が必要=> https://developer.android.com/reference/android/accounts/ AccountManager.html#getAccounts() –

関連する問題