@Override
protected void onStop(){
super.onStop();
int DELAY=4000;
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
create_notification();
}
},DELAY);
It creates a notification while the app is still in memory. Swiping the app off the memory does not create notification. I am looking for a method which is called when the app is killed. Here I am trying to create dummy notification with the app itself. i do not wish to use services like FCM