I'm using some code from this tutorial on how to receive SMS messages:
The code works perfectly, and does exactly what I want.
I am having 1 issue with it.
I want my app to run in the background, but when it's closed I want it to stop intercepting SMS messages.
My question is, why is my app still intercepting SMS messages after it's been closed?
I guess I have to find a "on close" handler and close the Broadcast Receiver then. (If there is a "on close" event handler..?).
If anyone can provide some insight I would be very grateful. Thanks!