Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 166
Registered: ‎03-04-2011
My Device: Playbook

How can I save my application state?

Hello.

 

I'm very very new on Playbook development. I'm reading Tablet OS SDK for Adobe Air Development Guide and it talks about save state when users move app to background.

 

Is there a predefined format to save state or I have to make my own?

 

Thanks.

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: How can I save my application state?

Search the forum or the web for examples of using SharedObject.  It's the simplest if your "state" is not really complex.  Depending on how your app works etc, this may be basically a trivial bit of code for you.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Highlighted
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How can I save my application state?

You can also save state in an XML file.  Look at File class and FileSteam to save files and the XML to parse the xml content.