App killed from Recently open application list by swipe.
In my application,
I am running service in background only when application is available in foreground or in background. If user has sent application in background by pressing home button of mobile then also service should be run.
But when user remove application from recently opened application then
1) Is any methods invoke automatically when removed from recent app list?
2) Which method will be invoke?
- My Requirement:
when application going to remove from recently open application at that time i will stop service which is already running in backgound.
- Issue Faced:
1) I have N number of activities...
2) I also want to know you that when application going to remove from recent list. Android OS not called onDestroy() method even . Activities which is in activity stack.
- Issue Faced:
bound
orstarted
. – Prohibitive