I am developing app where user can fill the form and sync it with the server once he comes in network range.
For security purpose I am veryfying user with login id, password and device Id. My first screen is login screen, second is form list and third is actual form.
My Problem is whenever phone gets restarted, by default login screen appear, Even User is on second or third page when phone is restarting.
I am using shared preferrance for saving data offline. That data remains persist. But problem lies if user went to remote place (Where network is not available easily) and reboot the phone by mistake, he have to login again.
I wants to make sure that if user is once logged in, even after phone reboot he will get redirected to second activity