List of usage examples for android.telecom PhoneAccount getLabel
public CharSequence getLabel()
From source file:Main.java
/** * Extract account label from PhoneAccount object. *///from ww w .j av a2s .c o m public static String getAccountLabel(Context context, PhoneAccountHandle accountHandle) { PhoneAccount account = getAccountOrNull(context, accountHandle); if (account != null && account.getLabel() != null) { return account.getLabel().toString(); } return null; }