开发者

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

开发者 https://www.devze.com 2023-03-24 02:34 出处:网络
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 variab

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

精彩评论

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