Is there a way to prevent android from recreating the last opened activity after the app process was killed (due to saving memory usage, when app is in background for some time) ? When the process is killed and app is re-created I need to start from the mainActivity, not the last one.
Note that: I don't want to kill history every time I press HOME button. Just when the process is killed.