12-08-2008 07:03 AM
My problem is while accessing the application if i close and reopen the application then the previous state of the application is getting loss. Please help me to maintian the same state of the application after close and reopen the application means after reopen the application the application should have focus on last accessed component, and i have used browser component if i reopen the application, then browser content also be there as previous state.
Advanced Thanks for any help.
Solved! Go to Solution.
12-08-2008 07:15 AM
12-08-2008 10:00 PM
What Simon is suggesting is that at "Close", you save enough information to reconstruct your Application in the state it was, and restore this when it is reopened.
Alternatively, instead of actually closing your application, you could just put it to the background using
Once in the background, when the user selects your application again it will start immediately and will be exactly as it was left.
This does not, off course, go through any shut-down or start up processing that you might wish it to, so, for example, will not tidy up any resources that you might wish to tidy up when you know the user is not going to use your application for a while. To help with this, look at the Application.activate() and Application.deactivate() methods.
Hope this helps.