开发者

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..


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜