I have a app, and when the activity is tabbed out and "swiped" then I want the app to toast a message. "Oof". I was looking through some stackoverflow questions, and I found this as an answer:
public void onDestroy() {
Toast.makeText(this, "Thanks my dude",
Toast.LENGTH_LONG).show();
super.onDestroy();
}
However this does not trigger upon my actions, nor when I force stop the app.
The toast, eventually will be replaced with a service call.