다음을 통해 공유


Intent.ActionCall Field

Definition

Activity Action: Perform a call to someone specified by the data.

[Android.Runtime.Register("ACTION_CALL")]
public const string ActionCall;
[<Android.Runtime.Register("ACTION_CALL")>]
val mutable ActionCall : string

Field Value

Implements

Attributes

Remarks

Activity Action: Perform a call to someone specified by the data.

Input: If nothing, an empty dialer is started; else #getData is URI of a phone number to be dialed or a tel: URI of an explicit phone number.

Output: nothing.

Note: there will be restrictions on which applications can initiate a call; most applications should use the #ACTION_DIAL.

Note: this Intent <strong>cannot</strong> be used to call emergency numbers. Applications can <strong>dial</strong> emergency numbers using #ACTION_DIAL, however.

Note: An app filling the android.app.role.RoleManager#ROLE_DIALER role should use android.telecom.TelecomManager#placeCall(Uri, Bundle) to place calls rather than relying on this intent.

Note: if you app targets android.os.Build.VERSION_CODES#M M and above and declares as using the android.Manifest.permission#CALL_PHONE permission which is not granted, then attempting to use this action will result in a java.lang.SecurityException.

Java documentation for android.content.Intent.ACTION_CALL.

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