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.

posted on 2012-02-23 21:09  Lee_Alvin  阅读(126)  评论(0编辑  收藏  举报