I am developing an app which will be performing some background function within a JobIntentService.
The user initiates action from Screen A. A background Intent Service is started. After the Intent service finishes its work it sends a callback to the Screen A and then Screen Sartes Screen B which utilizes the results of Intent Service.
My issue is that suppose the user starts the Action and then minimizes the app and then the Android OS clears the Screen A due to running on low Memory and then the Service sends back the callback.
My question is Now since Screen A no longer exists will it receive the callback? Is it possible to figure out that Screen A has to be cleared by Android OS so that my service can directly start Screen B?
Also, how can such a scenario be handled?
Any suggestion would be grateful.