可以mainting使用android系统中的共享preference会议 [英] May mainting the session using Shared preference in android
本文介绍了可以mainting使用android系统中的共享preference会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我想保持我的应用程序的一些会议。我可以用共享preference去维护它?我没有那么PLZ建议我用简单的例子,正确的方法。
Hi i want to maintain some sessions in my application. May i use shared preference to maintain it? I not then plz suggest me the proper way with the simple example.
推荐答案
你可能寻找<一href=\"http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29\"相对=nofollow> 的onSaveInstanceState。它可以用来保存页面的状态,并在以后恢复它
You're probably looking onSaveInstanceState. It can be used to save the state of a page and restore it later
这篇关于可以mainting使用android系统中的共享preference会议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文