I want to show a \"Thanks for using\" message when the application close.
What is the event that handles application closing?
you can use onDestroy() or onBackPressed() callbacks on your main/launcher activity
onDestroy()
onBackPressed()