My android app is being killed by the Android OS when it's keep in background for sometime.So when it launches back it's an empty screen since all the data has been wiped out at the time when OS killed the process.Unfortunately I'm not storing any data in SQLite or sharedpreference. What would be the best way to show the UI component with data even after app being killed?(Unfortunately couldn't implement SQLite due to the sensitive data/as per requirements).
1, I'hve observed whenever this happens in the base activity oncreate method I'm receiving the savedInstanceState in oncreate method. So I'm just calling the launcher method from there and app is working as expected. But is this the perfect way of implementation?.
most likely the server-side session had expired in the meanwhile.
onPause()
and login again ononResume()
.service
to keep the server-side session alive.