摘要: SharedPreferences是一种轻量型数据存储方式,基于xml文件存储key-value值,存在/data/data/包名/shared_prefs目录下,存储通过Editor实现。可以存boolean/int/float/long/string,但是无法进行条件查询。 SharedPre... 阅读全文
posted @ 2015-07-31 18:02 鲨鱼的微笑 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 读写内部存储的文件数据读FileOutputStream fos =OpenFileOutput(filename,Context.Mode_private);OutputStreamWriter osw = new OutputStreamWriter();osw.write();osw.flus... 阅读全文
posted @ 2015-07-31 17:50 鲨鱼的微笑 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 读取xmlDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();DocumentBuilder builder = builderFacotry.newDocumentBuilder();Docume... 阅读全文
posted @ 2015-07-31 17:26 鲨鱼的微笑 阅读(119) 评论(0) 推荐(0) 编辑