I am creating an SMS app. I can send messages fine, however I cannot get it to receive. I have successfully implemented the functionality to allow the app to be selected as the default SMS application on the device.
The problem I have is that I cannot pass the SMS from the BroadcastReceiver
to the Activity that displays messages. I am aware of the ability to use intent.putExtra()
for the message and then startActivity()
, but what happens if that activity has already been started when the message is received? I do not want to restart the activity every time a new message is received.