StupidBeauty
Read times:597Posted at:Thu Mar 28 04:42:18 2013
- no title specified

转载:【Android游戏开发十二】详解SharedPreference 与 FIleInputStream/FileOutputStream将数据存储到SD卡中!

要使用SharedPreference来保存配置信息,则对 SharedPreference实例调用edit()方法使之变脏,再调用一系列的putX()储存信息,最后再调用commit()方法来提交变更。

http://xiaominghimi.blog.51cto.com/2614927/606397

亮点:

sp.edit() .putString("login", et_login.getText().toString()) .putString("password", et_password.getText().toString()) .commit(); // 从sp.edit()开始进入编辑状态,直到commit()提交!

飞机

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4