I'd like to know what event Android issues when clicking on the top-right X of an Activity. I've tried onStop()
and onDestroy()
, but they don't get called at all.
Please note that I'm using AppTheme.NoActionBar
as app theme, and my Activity extends AppCompatActivity.
Also, is it possible to remove the top-right X button (but keep drop-down menu)?