public static String getLogin(final Context context) {
        final Account account = getAccount(context);
        return account != null ? account.name : null;
    }
Get login name of configured account

@param context
@return login name or null if none configure
app/src/main/java/com/github/pockethub/android/accounts/AccountUtils.java