Programs/Android

폰에 등록된 이메일 가져오는 방법

outliers 2011. 10. 25. 16:15


AccountManager am = (AccountManager) getSystemService(Context.ACCOUNT_SERVICE);
Account[] accounts = am.getAccounts();
for (int i = 0; i < accounts.length; i++)
{
        Account account = accounts[i];
        Log.i("test", account.name);
}