开发者

How to save state of application in android?

开发者 https://www.devze.com 2023-03-11 07:10 出处:网络
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

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

精彩评论

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