다음을 통해 공유


DevicePolicyManager.SetDefaultDialerApplication(String) Method

Definition

Must be called by a device owner or a profile owner of an organization-owned managed profile to set the default dialer application for the calling user.

[Android.Runtime.Register("setDefaultDialerApplication", "(Ljava/lang/String;)V", "GetSetDefaultDialerApplication_Ljava_lang_String_Handler", ApiSince=34)]
public virtual void SetDefaultDialerApplication (string packageName);
[<Android.Runtime.Register("setDefaultDialerApplication", "(Ljava/lang/String;)V", "GetSetDefaultDialerApplication_Ljava_lang_String_Handler", ApiSince=34)>]
abstract member SetDefaultDialerApplication : string -> unit
override this.SetDefaultDialerApplication : string -> unit

Parameters

packageName
String

The name of the package to set as the default dialer application.

Attributes

Remarks

Must be called by a device owner or a profile owner of an organization-owned managed profile to set the default dialer application for the calling user.

When the profile owner of an organization-owned managed profile calls this method, it sets the default dialer application in the work profile. This is only meaningful when work profile telephony is enabled by #setManagedSubscriptionsPolicy.

If the device does not support telephony (PackageManager#FEATURE_TELEPHONY), calling this method will do nothing.

Java documentation for android.app.admin.DevicePolicyManager.setDefaultDialerApplication(java.lang.String).

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