Android: onDestroy() or similar method in Application class

前端 未结 5 1495
清酒与你
清酒与你 2020-12-03 09:22

I am extending Application class to work with some global variables that need context. I know there is onCreate() method in the Application class that gets called before any

5条回答
  •  有刺的猬
    2020-12-03 09:52

    There is no such call back on a production device for the Application class.

    The things you want to do should usually be done right after the changes are made, or in the onPause() of the respective app component.

提交回复
热议问题