diff options
author | Santos Cordon <santoscordon@google.com> | 2013-02-04 17:58:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-02-04 17:58:13 +0000 |
commit | 3b53da493440efbacd147d1aedcea8679c3a642b (patch) | |
tree | 5a15948ba44270f21db88fb2c55f00ecca09d980 /telephony/java | |
parent | c24b14481527e2f87ddb3a156b8217d32c645b10 (diff) | |
parent | 149ceec6ebac9dd000c213fc91ee8e5c08522cc6 (diff) | |
download | frameworks_base-3b53da493440efbacd147d1aedcea8679c3a642b.zip frameworks_base-3b53da493440efbacd147d1aedcea8679c3a642b.tar.gz frameworks_base-3b53da493440efbacd147d1aedcea8679c3a642b.tar.bz2 |
Merge "Sort out permission around "instant text response""
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index cd2a600..cee66d7 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -126,6 +126,28 @@ public class TelephonyManager { "android.intent.action.PHONE_STATE"; /** + * The Phone app sends this intent when a user opts to respond-via-message during an incoming + * call. By default, the MMS app consumes this message and sends a text message to the caller. A + * third party app can provide this functionality in lieu of MMS app by consuming this Intent + * and sending the message using their own messaging system. The intent contains a URI + * describing the recipient, and an EXTRA containg the message itself. + * <p> + * The intent-filter which consumes this Intent needs to be in a service which requires the + * permission SEND_RESPOND_VIA_MESSAGE. + * + * <p> + * {@link #getData} is a URI describing the recipient of the message. + * <p> + * The {@link android.intent.Intent#EXTRA_TEXT} extra contains the message + * to send. + * <p> + * Output: nothing. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_RESPOND_VIA_MESSAGE = + "android.intent.action.RESPOND_VIA_MESSAGE"; + + /** * The lookup key used with the {@link #ACTION_PHONE_STATE_CHANGED} broadcast * for a String containing the new call state. * |