Skip to content Skip to sidebar Skip to footer

Android Application Not Restoring State When Installed From .apk, Works Fine From Eclipse

This is very strange: when I test my app installed from Eclipse, it is restoring it's state just fine, eg it shows the correct activity/ screen after moving away from the app and t

Solution 1:

When you click "run" button in Eclipse it does not means that application is really installed. It may just returns to screen in last state. This happens when you do not make any changes in code since last run.

When you really install app (by eclipse / from apk / by adb) android first stops already running old app, then reinstall it and runs from very beginning (login screen in your case). It is valid behavior and you can not change it.

If you have some data (eg logins or passwords), that should be saved through installs or updates you should use backup servie. It will work even if you install app to another device.

Post a Comment for "Android Application Not Restoring State When Installed From .apk, Works Fine From Eclipse"