I would 开发者_JAVA百科like to send a notification in a broadcast receiver. the notification should launch the default sms app.
Ultimately I want to create my own notifications for incoming text messages consistent with what the deault app, Handcent, and Chomp do.
I have the code to detect the threadId of the incoming sms.
How can I craft the intent to attach to the pendingIntent of the notification?
The following shows how to launch the sms app opening a particular thread, but the Intent creates a null pointer when I initialize it. Is it because it is being initialized in a broadcastReceiver, and not an activity?
How to open up a specific SMS in android
精彩评论