I have an Android app which reads the data from HR monitor, In that when user doing workout my app is able get the data. Even app goes in the background it is getting data.
The problem here is when we open 7 to 8 apps and comes to my app the app is going to onRestoreInstanceState
. On that case i will not any data and total connection is lost. How to maintain that state to solve that issue.