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

Posted by outliers
,