I have an intent service that broadcasts a message based on user action and my activity is registered to receive the message. Now, after the activity receives the message, I want my activity to respond to it depending on the message passed.
I have the below questions: 1. Will the receiver be still called even if my activity is killed? I don't want this to happen but would like to know if this is possible 2. Should I check for the current state of the activity (like which life-cycle method is currently being executed) before updating the activity UI in response to the message? Are there any best practices for handling the same?
Any helpful insight is appreciated. Thanks in advance
Now to answer your questions: