summaryrefslogtreecommitdiffstats
path: root/core/java/android/provider/Telephony.java
diff options
context:
space:
mode:
authorjsh <jsh@google.com>2009-05-27 17:32:50 -0700
committerjsh <jsh@google.com>2009-05-29 14:22:36 -0700
commit867641ece36e2fd17faaea79cf19506ab17177c6 (patch)
tree90125b403c6d0492a65ebd56d82566a290b77217 /core/java/android/provider/Telephony.java
parent9d981343c9d187b4746ed1f3658224d9551d51c8 (diff)
downloadframeworks_base-867641ece36e2fd17faaea79cf19506ab17177c6.zip
frameworks_base-867641ece36e2fd17faaea79cf19506ab17177c6.tar.gz
frameworks_base-867641ece36e2fd17faaea79cf19506ab17177c6.tar.bz2
Telephony support for SMS memory reporting to the network.
- Use ordered broadcast to allow receivers to set a result code. - Ack SMS with result code. - New RIL command to report memory status. - Fixed a typo in a Gservices setting. - Merge in CL 137895 (hold a wake lock while broadcasting SMS_RECEIVED).
Diffstat (limited to 'core/java/android/provider/Telephony.java')
-rw-r--r--core/java/android/provider/Telephony.java31
1 files changed, 29 insertions, 2 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java
index a4145c4..4078fa6 100644
--- a/core/java/android/provider/Telephony.java
+++ b/core/java/android/provider/Telephony.java
@@ -466,6 +466,24 @@ public final class Telephony {
*/
public static final class Intents {
/**
+ * Set by BroadcastReceiver. Indicates the message was handled
+ * successfully.
+ */
+ public static final int RESULT_SMS_HANDLED = 1;
+
+ /**
+ * Set by BroadcastReceiver. Indicates a generic error while
+ * processing the message.
+ */
+ public static final int RESULT_SMS_GENERIC_ERROR = 2;
+
+ /**
+ * Set by BroadcastReceiver. Indicates insufficient memory to store
+ * the message.
+ */
+ public static final int RESULT_SMS_OUT_OF_MEMORY = 3;
+
+ /**
* Broadcast Action: A new text based SMS message has been received
* by the device. The intent will have the following extra
* values:</p>
@@ -476,7 +494,10 @@ public final class Telephony {
* </ul>
*
* <p>The extra values can be extracted using
- * {@link #getMessagesFromIntent(Intent)}</p>
+ * {@link #getMessagesFromIntent(Intent)}.</p>
+ *
+ * <p>If a BroadcastReceiver encounters an error while processing
+ * this intent it should set the result code appropriately.</p>
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String SMS_RECEIVED_ACTION =
@@ -493,7 +514,10 @@ public final class Telephony {
* </ul>
*
* <p>The extra values can be extracted using
- * {@link #getMessagesFromIntent(Intent)}</p>
+ * {@link #getMessagesFromIntent(Intent)}.</p>
+ *
+ * <p>If a BroadcastReceiver encounters an error while processing
+ * this intent it should set the result code appropriately.</p>
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String DATA_SMS_RECEIVED_ACTION =
@@ -510,6 +534,9 @@ public final class Telephony {
* <li><em>pduType (Integer)</em> - The WAP PDU type</li>
* <li><em>data</em> - The data payload of the message</li>
* </ul>
+ *
+ * <p>If a BroadcastReceiver encounters an error while processing
+ * this intent it should set the result code appropriately.</p>
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String WAP_PUSH_RECEIVED_ACTION =