Arun Badole
Arun Badole

Reputation: 11097

How to save state of application in android?

I want to know how can I save state of my application in android.What I want is when user is using my app and in between he goes out of my app without doing logout.So when he again open my app he should be redirected to the page and its section where he left instead of first page. Is it Possible to do ? Please Help me..

Upvotes: 0

Views: 588

Answers (1)

Jason Rogers
Jason Rogers

Reputation: 19344

You can always play around with

SharedPreferences

and

Editor

you save a value that represents where your user got it and when you reopen the app you load the page accordingly like 1 => main page 2=>user info 3=>credits etc

either check the android documentation or :

http://saigeethamn.blogspot.com/2009/10/shared-preferences-android-developer.html

Upvotes: 1

Related Questions