Note: Your implementation of these lifecycle methods must always call the superclass implementation before doing any work, as shown in the examples above.
you can register a BroadcastReceiver in onStart() to monitor changes that impact your UI, and unregister it in onStop() when the user can no longer see what you are displaying.