diff options
| author | Fan Zhang <zhfan@google.com> | 2019-10-14 13:43:46 -0700 |
|---|---|---|
| committer | Fan Zhang <zhfan@google.com> | 2019-12-19 20:50:31 +0000 |
| commit | 2b2458e094ea84ca2f1be66ef44c1c24fa364204 (patch) | |
| tree | cbb7ee79575d01bc32a6a38d46973b3b47e7b7c4 /core/java/android/content/Intent.java | |
| parent | d8513243aad252ac9b36cf8236298f85a7457b7a (diff) | |
Introduce telecom api to launch emeregency dialer.
Test: manual
Bug: 136194151
Change-Id: I5c9732062e5123539343843fb9a9ae3ca7111890
Merged-In: I5c9732062e5123539343843fb9a9ae3ca7111890
Diffstat (limited to 'core/java/android/content/Intent.java')
| -rw-r--r-- | core/java/android/content/Intent.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index e9a476211f1e..a6867ff209e4 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1134,6 +1134,18 @@ public class Intent implements Parcelable, Cloneable { @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_CALL_EMERGENCY = "android.intent.action.CALL_EMERGENCY"; /** + * Activity Action: Dial a emergency number specified by the data. This shows a + * UI with the number being dialed, allowing the user to explicitly + * initiate the call. + * <p>Input: If nothing, an empty emergency dialer is started; else {@link #getData} + * is a tel: URI of an explicit emergency phone number. + * <p>Output: nothing. + * @hide + */ + @SystemApi + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_DIAL_EMERGENCY = "android.intent.action.DIAL_EMERGENCY"; + /** * Activity action: Perform a call to any number (emergency or not) * specified by the data. * <p>Input: {@link #getData} is URI of a phone number to be dialed or a |
