I have a camera app with options like photo, video, bokeh. If I goto recent and swipe up from there and relaunch the app, then it should open at photo option again regardless of which option I was using before killing the app. The issue if I open the settings page in it and then go to recents and swipe up from there, the process is not killed and then if I relaunch the app, it will start from the last used option instead of photos option.
I am extending the application class and using onSavedInstance in my main activity and camerasettings activity, but that should not stop the process from getting killed.
If i don't open settings and goto recent and swipe up, it works as designed and starts from the photos option. I am not able to understand why my process is not getting killed.
The process should get killed everytime when swiping off from the recents screen.