public static final class Telephony.Sms.Intents extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_CHANGE_DEFAULT
Activity action: Ask the user to change the default
SMS application.
|
static String |
ACTION_DEFAULT_SMS_PACKAGE_CHANGED
Broadcast action: When the default SMS package changes,
the previous default SMS package and the new default SMS
package are sent this broadcast to notify them of the change.
|
static String |
ACTION_EXTERNAL_PROVIDER_CHANGE
Broadcast action: When a change is made to the SmsProvider or
MmsProvider by a process other than the default SMS application,
this intent is broadcast to the default SMS application so it can
re-sync or update the change.
|
static String |
DATA_SMS_RECEIVED_ACTION
Broadcast Action: A new data based SMS message has been received
by the device.
|
static String |
EXTRA_IS_DEFAULT_SMS_APP
The IsDefaultSmsApp boolean passed as an
extra for
ACTION_DEFAULT_SMS_PACKAGE_CHANGED to indicate whether the
SMS app is becoming the default SMS app or is no longer the default. |
static String |
EXTRA_PACKAGE_NAME
The PackageName string passed in as an
extra for
ACTION_CHANGE_DEFAULT |
static String |
MMS_DOWNLOADED_ACTION
Broadcast Action: An incoming MMS has been downloaded.
|
static int |
RESULT_SMS_DUPLICATED
Set by BroadcastReceiver to indicate a duplicate incoming message.
|
static int |
RESULT_SMS_GENERIC_ERROR
Set by BroadcastReceiver to indicate a generic error while
processing the message.
|
static int |
RESULT_SMS_HANDLED
Set by BroadcastReceiver to indicate that the message was handled
successfully.
|
static int |
RESULT_SMS_OUT_OF_MEMORY
Set by BroadcastReceiver to indicate insufficient memory to store
the message.
|
static 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.
|
static String |
SIM_FULL_ACTION
Broadcast Action: The SIM storage for SMS messages is full.
|
static String |
SMS_CARRIER_PROVISION_ACTION
Action: A SMS based carrier provision intent.
|
static String |
SMS_CB_RECEIVED_ACTION
Broadcast Action: A new Cell Broadcast message has been received
by the device.
|
static String |
SMS_DELIVER_ACTION
Broadcast Action: A new text-based SMS message has been received
by the device.
|
static String |
SMS_EMERGENCY_CB_RECEIVED_ACTION
Broadcast Action: A new Emergency Broadcast message has been received
by the device.
|
static String |
SMS_RECEIVED_ACTION
Broadcast Action: A new text-based SMS message has been received
by the device.
|
static String |
SMS_REJECTED_ACTION
Broadcast Action: An incoming SMS has been rejected by the
telephony framework.
|
static 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).
|
static String |
WAP_PUSH_DELIVER_ACTION
Broadcast Action: A new WAP PUSH message has been received by the
device.
|
static String |
WAP_PUSH_RECEIVED_ACTION
Broadcast Action: A new WAP PUSH message has been received by the
device.
|
Modifier and Type | Method and Description |
---|---|
static SmsMessage[] |
getMessagesFromIntent(Intent intent)
Read the PDUs out of an
SMS_RECEIVED_ACTION or a
DATA_SMS_RECEIVED_ACTION intent. |
public static final int RESULT_SMS_HANDLED
public static final int RESULT_SMS_GENERIC_ERROR
public static final int RESULT_SMS_OUT_OF_MEMORY
public static final int RESULT_SMS_UNSUPPORTED
public static final int RESULT_SMS_DUPLICATED
public static final String ACTION_CHANGE_DEFAULT
EXTRA_PACKAGE_NAME
.public static final String EXTRA_PACKAGE_NAME
ACTION_CHANGE_DEFAULT
ACTION_CHANGE_DEFAULT
,
Constant Field Valuespublic static final String SMS_DELIVER_ACTION
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
android.Manifest.permission#BROADCAST_SMS
as a required permission in
the <receiver>
tag.
Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String SMS_RECEIVED_ACTION
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.
Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String DATA_SMS_RECEIVED_ACTION
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.
Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String WAP_PUSH_DELIVER_ACTION
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.
Requires android.Manifest.permission#RECEIVE_MMS
or
android.Manifest.permission#RECEIVE_WAP_PUSH
(depending on WAP PUSH type) to
receive.
Note:
The broadcast receiver that filters for this intent must declare
android.Manifest.permission#BROADCAST_WAP_PUSH
as a required permission in
the <receiver>
tag.
public static final String WAP_PUSH_RECEIVED_ACTION
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.
Requires android.Manifest.permission#RECEIVE_MMS
or
android.Manifest.permission#RECEIVE_WAP_PUSH
(depending on WAP PUSH type) to
receive.
public static final String SMS_CB_RECEIVED_ACTION
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.
Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String SMS_CARRIER_PROVISION_ACTION
public static final String SMS_EMERGENCY_CB_RECEIVED_ACTION
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.
Requires android.Manifest.permission#RECEIVE_EMERGENCY_BROADCAST
to
receive.
public static final String SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED_ACTION
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.
Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String SIM_FULL_ACTION
Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String SMS_REJECTED_ACTION
RESULT_SMS_OUT_OF_MEMORY
indicating the error returned to the network.Requires android.Manifest.permission#RECEIVE_SMS
to receive.
public static final String MMS_DOWNLOADED_ACTION
public static final String ACTION_DEFAULT_SMS_PACKAGE_CHANGED
EXTRA_IS_DEFAULT_SMS_APP
to
indicate whether the package is the new default SMS package.public static final String EXTRA_IS_DEFAULT_SMS_APP
ACTION_DEFAULT_SMS_PACKAGE_CHANGED
to indicate whether the
SMS app is becoming the default SMS app or is no longer the default.public static final String ACTION_EXTERNAL_PROVIDER_CHANGE
public static SmsMessage[] getMessagesFromIntent(Intent intent)
SMS_RECEIVED_ACTION
or a
DATA_SMS_RECEIVED_ACTION
intent.intent
- the intent to read from