Keeping the application state - deploy/install apk
- by Buffalo
I'm trying to have my application minimized when paused and then when it's resumed, it should be restored to its previous state, not recreated. This works perfectly when deploying the application on a device/emulator from Eclipse.
The problem occurs when I get the apk (either from bin\ or from Project - Android tools - Export signed application package) and install it on a device with a file browser (Astro): the application is destroyed when paused and then recreated.
I can call moveTaskToBack(true); in my activity, yet it will still be recreated when launching it.
All the discussions around this are based on achieving the opposite: closing the application when minimizing it. Is there any way of achieving what I want?