You can use the AccountManager for checking the google accounts on an android phone :
AccountManager am = AccountManager.get(getApplicationContext());
Account[] accounts = am.getAccounts();
for (Account account : accounts) {
//do something with account
}