views:

61

answers:

0

I would 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?

http://stackoverflow.com/questions/1412221/how-to-open-up-a-specify-sms-in-android