List of usage examples for android.telecom TelecomManager getDefaultDialerPackage
public String getDefaultDialerPackage()
From source file:com.mobileglobe.android.customdialer.common.compat.telecom.TelecomManagerCompat.java
/** * Used to determine the currently selected default dialer package. * * @param telecomManager the {@link TelecomManager} used for method calls, if possible. * @return package name for the default dialer package or null if no package has been * selected as the default dialer. *//* w w w . j a va2 s . c o m*/ @Nullable public static String getDefaultDialerPackage(@Nullable TelecomManager telecomManager) { if (telecomManager != null && CompatUtils.isDefaultDialerCompatible()) { return telecomManager.getDefaultDialerPackage(); } return null; }