(A) will be disconnected from (S) onPause, but if you did not call the unbind method, I think you will get a memory leak.
If you do not return (A) to (S) onResume (), (A) notice that you know (S), unless the activity is recreated.
Depends on how you post updates. NPE can happen for sure if you reference (A) at all, and it can be destroyed during a pause.
(S) will only know that (A) is paused if you have a way of transmitting this message (S) as you did.
And yes, you are fine. You must bind and untie onResume and onPause.
source share