In my Application, activity A is launcher activity, from A it called B and from B it called C, I have such more than 5 activities. In C when I press home button, and again o
You will need to detect that Android has killed your process and then after that the user has returned to the app (causing Android to create a new process). I've described how to do this in numerous answers:
https://stackoverflow.com/a/29802601/769265
https://stackoverflow.com/a/27276077/769265
https://stackoverflow.com/a/11249090/769265