How to open SMS intent to read (not send) message?

后端 未结 1 1293
野性不改
野性不改 2021-01-26 11:44

I am using android.provider.Telephony.SMS_RECEIVED to listen to incoming SMS. I was successful catch SMS body and SMS number from the sender. I want to open the SMS

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-26 12:41

    How can I do it in Android 5.0?

    ACTION_VIEW does not take extras. It does take a Uri. If you have read access to the Sms provider, you are welcome to try to find the message in the inbox, then try ACTION_VIEW with the Uri to that message. However, there is no requirement that any Android device have an app with an activity that supports this.

    0 讨论(0)
提交回复
热议问题