LitePal用法详解
摘要:一.首先我对数据库的操作基于LitePal的,是基于面向对象思想的,所以首先我先讲怎么使用LitePal 1.在build.garde(Module:app)里面的 导入以上的依赖,其中1.3.2是我当前使用的版本,你们可以自己去找最新的 2.配置litepal.xml文件。右击app/src/ma
阅读全文
posted @
2017-03-07 19:51
楚天千里
阅读(14541)
推荐(0)
SharedPrefences的用处
摘要:存储数据 1 SharedPreferences.Editor edit = getSharedPreferences("data", MODE_PRIVATE).edit(); 2 edit.putString("bookname", "完美"); 3 edit.putString("anthor", "刘红"); 4 edit.putInt("page", 700); 5 edit.putI...
阅读全文
posted @
2017-03-01 23:18
楚天千里
阅读(237)
推荐(0)
File文件存储
摘要:文件存储的核心是Context提供了一个openFileOutput()与openFileInput()俩个方法 课程demo
阅读全文
posted @
2017-03-01 17:36
楚天千里
阅读(211)
推荐(0)