android开发中的小知识(持续更新中)

1.当一个Activity启动另一个时,它们的生命周期回调有部分是重合的,回调的时序搞错也可能引发一些问题。

  Activity A starts Activity B:

  1. Activity A's onPause() method executes.
  2. Then, Activity B's onCreate()onStart(), and onResume() methods execute in sequence. (Activity B now has user focus.)
  3. Then, if Activity A is no longer visible on screen, its onStop() method executes.
posted @ 2018-06-13 16:57  果园农夫  阅读(115)  评论(0编辑  收藏  举报