SharedPreferences
SharedPreferences:应用程序有时需要保存少量的数据,如各种配置信息(声音的开关,震动效果的开关等)的存储,这个时候启用数据库有点夸张,安卓提供了SharedPreferences进行保存。
SharedPreferences保存的数据主要是类似于key-value键值对。其提供的主要接口是负责读取应用程序的Preference...
分类:
其他好文 时间:
2015-03-06 10:40:46
阅读次数:
135
SharedPreferencesSharedPreferences:应用程序有时需要保存少量的数据,如各种配置信息(声音的开关,震动效果的开关等)的存储,这个时候启用数据库有点夸张,安卓提供了SharedPreferences进行保存。SharedPreferences保存的数据主要是类似于key-value键值对。其提供的主要接口是负责读取应用程序的Preferences数据,常用方法有以下:...
分类:
其他好文 时间:
2015-03-06 10:05:06
阅读次数:
129
用 Eclipse 时经常出现错误提示: Error notifying a preference change listener. Check the log for details. Widget is disposed 最简单解决方法: 关闭 Breadcrumb bar,在需要的时候重新打开。根本原因没有详...
分类:
系统相关 时间:
2015-03-05 13:12:23
阅读次数:
1052
Android提供了几种永久储存手机数据的选项,而我们选择存储的方式依据于我们存储的不同的特定需求,比如你的数据是否需要只对自己公开,数据是否可以被其他应用得到或者你想要储存多大的数据。
数据存储的方式如下:
Shared Preferences
通过xml类型的键值对,存储私密的原始数据。
Internal Storage 内部存储
通过手机内存存储私密数据
Exte...
分类:
移动开发 时间:
2015-03-02 22:29:32
阅读次数:
222
有时候,在代码里写了一个JFrame,然后Eclipse就自动添加了import javax.swing.JFrame;但有时候希望只要import javax.swing.*;就可以了,不希望具体类名修改方法Preference -> Java -> Code Style -> Orgnize i...
分类:
系统相关 时间:
2015-03-02 20:38:27
阅读次数:
230
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi...
分类:
其他好文 时间:
2015-03-02 16:21:23
阅读次数:
153
设置注释模板的入口: Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍:
文件(Files)注释标签:
/**
* @Title: ${file_name}
* @Package ${package_name}
* @Descriptio...
分类:
系统相关 时间:
2015-02-28 14:37:21
阅读次数:
143
sublime设置:设置sublime回车跳转到()等外围:Preference-->用户热键设置-->[{"keys":["enter"],"command":"move","args":{"by":"characters","forward":true},"context":[{"key":"following_text","operator":"regex_contains","operand":"^[)\\]\\>\\‘\\\"]","ma..
分类:
其他好文 时间:
2015-02-28 00:27:01
阅读次数:
145
转自:http://jyao.iteye.com/blog/1261555 The word is not correctly spelled 此问题是eclipse校验单词拼写造成,如果出在配置文件中,一般会影响到程序的正常执行 解决方法:在eclipse下的Window--Preference....
分类:
其他好文 时间:
2015-02-27 10:04:19
阅读次数:
6016
题目链接:http://poj.org/problem?id=3281Cows are such finicky eaters. Each cow has a preference for certain foods and drinks, and she will consume no other...
分类:
其他好文 时间:
2015-02-25 18:33:44
阅读次数:
171