java.lang.Object | |
↳ | android.provider.Telephony.Sms.Intents |
Contains constants for SMS related Intents that are broadcast.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_CHANGE_DEFAULT | Activity action: Ask the user to change the default SMS application. | |||||||||
String | DATA_SMS_RECEIVED_ACTION | Broadcast Action: A new data based SMS message has been received by the device. | |||||||||
String | EXTRA_PACKAGE_NAME | The PackageName string passed in as an
extra for ACTION_CHANGE_DEFAULT |
|||||||||
int | RESULT_SMS_DUPLICATED | Set by BroadcastReceiver to indicate a duplicate incoming message. | |||||||||
int | RESULT_SMS_GENERIC_ERROR | Set by BroadcastReceiver to indicate a generic error while processing the message. | |||||||||
int | RESULT_SMS_HANDLED | Set by BroadcastReceiver to indicate that the message was handled successfully. | |||||||||
int | RESULT_SMS_OUT_OF_MEMORY | Set by BroadcastReceiver to indicate insufficient memory to store the message. | |||||||||
int | RESULT_SMS_UNSUPPORTED | Set by BroadcastReceiver to indicate that the message, while possibly valid, is of a format or encoding that is not supported. | |||||||||
String | SIM_FULL_ACTION | Broadcast Action: The SIM storage for SMS messages is full. | |||||||||
String | SMS_CB_RECEIVED_ACTION | Broadcast Action: A new Cell Broadcast message has been received by the device. | |||||||||
String | SMS_DELIVER_ACTION | Broadcast Action: A new text-based SMS message has been received by the device. | |||||||||
String | SMS_EMERGENCY_CB_RECEIVED_ACTION | Broadcast Action: A new Emergency Broadcast message has been received by the device. | |||||||||
String | SMS_RECEIVED_ACTION | Broadcast Action: A new text-based SMS message has been received by the device. | |||||||||
String | SMS_REJECTED_ACTION | Broadcast Action: An incoming SMS has been rejected by the telephony framework. | |||||||||
String | SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED_ACTION | Broadcast Action: A new CDMA SMS has been received containing Service Category Program Data (updates the list of enabled broadcast channels). | |||||||||
String | WAP_PUSH_DELIVER_ACTION | Broadcast Action: A new WAP PUSH message has been received by the device. | |||||||||
String | WAP_PUSH_RECEIVED_ACTION | Broadcast Action: A new WAP PUSH message has been received by the device. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Read the PDUs out of an
SMS_RECEIVED_ACTION or a
DATA_SMS_RECEIVED_ACTION intent. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Activity action: Ask the user to change the default
SMS application. This will show a dialog that asks the
user whether they want to replace the current default
SMS application with the one specified in
EXTRA_PACKAGE_NAME
.
Broadcast Action: A new data based SMS message has been received by the device. This intent will be delivered to all registered receivers as a notification. The intent will have the following extra values:
The extra values can be extracted using
getMessagesFromIntent(Intent)
.
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
The PackageName string passed in as an
extra for ACTION_CHANGE_DEFAULT
Set by BroadcastReceiver to indicate a duplicate incoming message.
Set by BroadcastReceiver to indicate a generic error while processing the message.
Set by BroadcastReceiver to indicate that the message was handled successfully.
Set by BroadcastReceiver to indicate insufficient memory to store the message.
Set by BroadcastReceiver to indicate that the message, while possibly valid, is of a format or encoding that is not supported.
Broadcast Action: The SIM storage for SMS messages is full. If space is not freed, messages targeted for the SIM (class 2) may not be saved.
Broadcast Action: A new Cell Broadcast message has been received by the device. The intent will have the following extra values:
The extra values can be extracted using
getMessagesFromIntent(Intent)
.
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
Broadcast Action: A new text-based SMS message has been received by the device. This intent will only be delivered to the default sms app. That app is responsible for writing the message and notifying the user. The intent will have the following extra values:
The extra values can be extracted using
getMessagesFromIntent(Intent)
.
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
Note:
The broadcast receiver that filters for this intent must declare
BROADCAST_SMS
as a required permission in
the <receiver>
tag.
Broadcast Action: A new Emergency Broadcast message has been received by the device. The intent will have the following extra values:
The extra values can be extracted using
getMessagesFromIntent(Intent)
.
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
Broadcast Action: A new text-based SMS message has been received by the device. This intent will be delivered to all registered receivers as a notification. These apps are not expected to write the message or notify the user. The intent will have the following extra values:
The extra values can be extracted using
getMessagesFromIntent(Intent)
.
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
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:
RESULT_SMS_OUT_OF_MEMORY
indicating the error returned to the network.Broadcast Action: A new CDMA SMS has been received containing Service Category Program Data (updates the list of enabled broadcast channels). The intent will have the following extra values:
The extra values can be extracted using
getMessagesFromIntent(Intent)
.
If a BroadcastReceiver encounters an error while processing this intent it should set the result code appropriately.
Broadcast Action: A new WAP PUSH message has been received by the device. This intent will only be delivered to the default sms app. That app is responsible for writing the message and notifying the user. The intent will have the following extra 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.
Note:
The broadcast receiver that filters for this intent must declare
BROADCAST_WAP_PUSH
as a required permission in
the <receiver>
tag.
Broadcast Action: A new WAP PUSH message has been received by the device. This intent will be delivered to all registered receivers as a notification. These apps are not expected to write the message or notify the user. The intent will have the following extra 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.
Read the PDUs out of an SMS_RECEIVED_ACTION
or a
DATA_SMS_RECEIVED_ACTION
intent.
intent | the intent to read from |
---|