1
I need my app to reboot whenever it’s brought from the OS background, so the user is forced to log in again.
I tried to use the finishAffinity() in my onPause() of Activity, the problem is that this method is also called when there is a transition between activities, causing when the OnBackPressed if the application were to restart as well.