I think you can archive this by registering the Receiver in the onResume() and unregister the receiver in the onPause() method. This should do the trick.
1 That definitely will do the trick. – Audrius Feb 17 at 10:24 Thanks Just what I needed to do. – Androider Feb 19 at 9:19.
I have a broadcast receiver which I want to pass onto an activity but if and only if the activity is visible. I don't want to start it up unless its already visible. Is there an option for this?
Or a way to pass it but not have the activity become visible? Or if you know a way for an activity be register as a broadcast receiver that would work too I suppose.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.