android note1

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.

原文地址:https://www.cnblogs.com/leealvin/p/2365485.html