From c9790716f0c759d8bb197f4237a2901e5f561b5b Mon Sep 17 00:00:00 2001 From: Dan Griffin Date: Wed, 27 Jan 2010 15:21:25 +0000 Subject: Enhance WspTypeDecoder to decode Content Type Parameters This patch enables WspTypeDecoder to correctly parse content type parameters as described in the Wap230 WSP specifications (wap-230-wsp-20010705-a section 8.4.2.24) which are then passed on as part of the WAP_PUSH intent notification. It also recognises all Well Known WSP Content types, and simplifies their retrieval (i.e. a well known content type will always be available through the WspTypeDecoder.getValueString() method). Change-Id: I0eb3f9ac287aa7cb53312777c4be54b1939fa857 --- core/java/android/provider/Telephony.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'core/java/android') diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index d271e93..fa5cd8b 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -562,15 +562,24 @@ public final class Telephony { * values:

* * * *

If a BroadcastReceiver encounters an error while processing * this intent it should set the result code appropriately.

+ * + *

The contentTypeParameters extra value is map of content parameters keyed by + * their names.

+ * + *

If any unassigned well-known parameters are encountered, the key of the map will + * be 'unassigned/0x...', where '...' is the hex value of the unassigned parameter. If + * a parameter has No-Value the value in the map will be null.

*/ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String WAP_PUSH_RECEIVED_ACTION = @@ -583,7 +592,7 @@ public final class Telephony { */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String SIM_FULL_ACTION = - "android.provider.Telephony.SIM_FULL"; + "android.provider.Telephony.SIM_FULL"; /** * Broadcast Action: An incoming SMS has been rejected by the -- cgit v1.1