/** * 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. */ @Nullable public static String getDefaultDialerPackage(@Nullable TelecomManager telecomManager) { if (telecomManager != null && CompatUtils.isDefaultDialerCompatible()) { return telecomManager.getDefaultDialerPackage(); } return null; }