Android onClose event

前端 未结 3 1435

I want to show a \"Thanks for using\" message when the application close.

What is the event that handles application closing?

3条回答
  •  清酒与你
    2020-12-16 02:03

    Assuming you want the dialog to display only when the app is completely closed(removed from background as well), You could just override onDestroy() method in your first activity.

提交回复
热议问题