I have a number of activities and a service which works on a different thread. For example, the service has received a response from the server and it sends it to the active activity. BUT the app may not be active when the response from the server is received. I want to save my objects from the response somewhere and then when the app is opened again, to send a notification and the currently active activity gets the response.
I know I can use DB, but it will be redundant in this case because I need to save only the last response. I was thinking about creating a DB, but doing so for only one object is not entirely reasonable.
Can you advise a smart way how can I do this? Thank you for your time.