TelecomManager.ActionChangeDefaultDialer Field

Definition

Activity action: Shows a dialog asking the user whether or not they want to replace the current default Dialer with the one specified in #EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME.

[Android.Runtime.Register("ACTION_CHANGE_DEFAULT_DIALER", ApiSince=23)]
public const string ActionChangeDefaultDialer;
[<Android.Runtime.Register("ACTION_CHANGE_DEFAULT_DIALER", ApiSince=23)>]
val mutable ActionChangeDefaultDialer : string

Field Value

Attributes

Remarks

Activity action: Shows a dialog asking the user whether or not they want to replace the current default Dialer with the one specified in #EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME.

Usage example:

Intent intent = new Intent(TelecomManager.ACTION_CHANGE_DEFAULT_DIALER);
            intent.putExtra(TelecomManager.EXTRA_CHANGE_DEFAULT_DIALER_PACKAGE_NAME,
                    getActivity().getPackageName());
            startActivity(intent);

This is no longer supported since Q, please use android.app.role.RoleManager#createRequestRoleIntent(String) with android.app.role.RoleManager#ROLE_DIALER instead.

Java documentation for android.telecom.TelecomManager.ACTION_CHANGE_DEFAULT_DIALER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to