summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorjsh <jsh@google.com>2009-08-28 14:12:06 -0700
committerjsh <jsh@google.com>2009-09-01 13:35:20 -0700
commita01726a7fdd872cd8e1e8a9dfa52fb9cdbf01019 (patch)
treeca3e9cc6c7d7af4ef160df19498e25aaa143a8b5 /core/java
parent394c92ef154e04fe37ac4688fc6b9cc13917db1f (diff)
downloadframeworks_base-a01726a7fdd872cd8e1e8a9dfa52fb9cdbf01019.zip
frameworks_base-a01726a7fdd872cd8e1e8a9dfa52fb9cdbf01019.tar.gz
frameworks_base-a01726a7fdd872cd8e1e8a9dfa52fb9cdbf01019.tar.bz2
Some fixes to SMS processing in the framework.
Always process class 0 and other unstored SMS (eg, MWI). We were rejecting all SMS messages in storage full situations, but certain messages do not require storage. Also, notify apps when the framework rejects MT SMS, with new SMS_REJECTED_ACTION intent. b/2066775 b/2015906
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/Telephony.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java
index 0207330..0865b1d 100644
--- a/core/java/android/provider/Telephony.java
+++ b/core/java/android/provider/Telephony.java
@@ -558,6 +558,23 @@ public final class Telephony {
"android.provider.Telephony.SIM_FULL";
/**
+ * Broadcast Action: An incoming SMS has been rejected by the
+ * telephony framework. This intent is sent in lieu of any
+ * of the RECEIVED_ACTION intents. The intent will have the
+ * following extra value:</p>
+ *
+ * <ul>
+ * <li><em>result</em> - An int result code, eg,
+ * <code>{@link #RESULT_SMS_OUT_OF_MEMORY}</code>,
+ * indicating the error returned to the network.</li>
+ * </ul>
+
+ */
+ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
+ public static final String SMS_REJECTED_ACTION =
+ "android.provider.Telephony.SMS_REJECTED";
+
+ /**
* Read the PDUs out of an {@link #SMS_RECEIVED_ACTION} or a
* {@link #DATA_SMS_RECEIVED_ACTION} intent.
*