For data that should persist through configuration changes (e.g.,
screen rotations), use onSaveInstanceState():

http://developer.android.com/guide/topics/fundamentals/activities.html#SavingActivityState

For data that should persist beyond that (e.g., user leaves your app,
comes back to it three months later), save your data somewhere in
onPause() of your Activity.

On Wed, Jun 15, 2011 at 12:39 AM, venugopal reddy
<[email protected]> wrote:
> How to maintain instance in the android application.
>
> For example , If i am running one application, in that am entering
> some text and click some check boxes, unfortunately the application is
> showdown,reopen the same application i wanted to last state of the
> apllication( i mean save the last entered text and other stuff what i
> did)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to