I am developing an Android app and I want to detect when the user exits my app either by clicking the Back button or the Home button.
Also, an event like onInit() would be useful in my scenario, as I just want to have the MyInıt action start at first.
onDestroy() is not called until other apps need more memory.