Keeping the application state - deploy/install apk

Posted by Buffalo on Stack Overflow See other posts from Stack Overflow or by Buffalo
Published on 2012-10-29T16:44:06Z Indexed on 2012/10/29 17:00 UTC
Read the original article Hit count: 248

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about android

Related posts about state