I am making an SMS Android Application and currently have 2 activities : the main activity with the conversation list, and a second displaying the messages of a conversation.
Now I am trying to receive messages, and my BroadcastReceiver works well, but I really don't know how to handle the message then : how can I know if I am in the main activity and have to test if a new conversation is started (for example) or if I am in a conversation and have to update my message list.
I have tried with a booleans representing whether the activity is active or not but it is not working very well and seems to be ugly.
Help please, thank you ! :D