Example usage for android.telecom TelecomManager getDefaultDialerPackage

List of usage examples for android.telecom TelecomManager getDefaultDialerPackage

Introduction

In this page you can find the example usage for android.telecom TelecomManager getDefaultDialerPackage.

Prototype

public String getDefaultDialerPackage() 

Source Link

Document

Used to determine the currently selected default dialer package.

Usage

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;
}