1 protected AccountManager accountManager; 2 3 accountManager = AccountManager.get(getApplicationContext()); 4 Account[] accounts = accountManager.getAccountsByType("com.google"); 5