开发者

Other than saving variable states, what is good practice for onPause, onStop, onDestroy?

I am to the point in the design of my first applicat开发者_StackOverflow中文版ion where I am going to go back through my code and implement the life cycle management. Other than saving state of variables, what are good practices for each of these methods?

For example: clearing animations?

I know the question is sort of vague, but am wondering what your "to-do" list looks like when you are implementing these methods.

Thanks!


  • Closing a DB connection.
  • Stopping the media player.
  • Terminating an active connection, if any

Depends upon the kind of application you are programming.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜