it depends on where you have register the receiver. The complementary method pairs are
onCreate - onDestroy
onResume - onPause
onStart - onStop
if you register the receiver in the first one then unregister it in it’s ending method.
it depends on where you have register the receiver. The complementary method pairs are
onCreate - onDestroy
onResume - onPause
onStart - onStop
if you register the receiver in the first one then unregister it in it’s ending method.