Is it possible to store an object on closing an activity and then retrieve it when you start activity again?
So the issue is following - I am developing an app which connects to Bluetooth slaves. I have a different functionality in different activities. I am able to connect bluetooth slaves to each activity, but when I move to different activity, the previous is destroyed. I would like to make them to work in parallel or at least continue previously established connection without need to reconnect.
So after connection I have a connection object. I was wondering if it is possible to store this object when I close the app and then when the app is ran again I check if this object exists and if it does, I am just using it.
Or do you have any other ideas how to overcome this problem and let those activities to run in parallel?
Thank you in advance.