Telephony.Sms.Intents.SmsReceivedAction Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Broadcast Action: A new text-based SMS message has been received by the device.
[Android.Runtime.Register("SMS_RECEIVED_ACTION")]
public const string SmsReceivedAction;
[<Android.Runtime.Register("SMS_RECEIVED_ACTION")>]
val mutable SmsReceivedAction : string
Field Value
- Attributes
Remarks
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.
If the SMS message contains an SMS retriever hash, the intent will only be delivered to the app corresponding to the SMS retriever hash, and the list of apps listed here.
Requires Manifest.permission.RECEIVE_SMS to receive.
Android reference for android.provider.Telephony.Sms.Intents.SMS_RECEIVED_ACTION.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.