Call finish() inside onPause() but not when orientation changes
问题 I have an app that needs to call finish when someone exits its main activity (so i do not want it to be paused ), even by pressing home activity has to be finished, to handle this currently i simply call finish() in my onPause() method, since everything is done with fragments it works pretty well and gives no stability issues. My only problem is that i cannot handle orientation changes since onPause() is called before onConfigurationChanged() (allowing me to disable this behavior when