简单的sqlite数据库示例

上传者: ShaowangyunBlog | 上传时间: 2021-04-14 20:06:37 | 文件大小: 157KB | 文件类型: ZIP
一个简单的Android数据库的使用示例,分别展示原生语法和litepal框架两种实现

文件下载

资源详情

[{"title":"( 52 个子文件 157KB ) 简单的sqlite数据库示例","children":[{"title":"DataBaseDemo-master","children":[{"title":"DataBaseDemo_v1.0","children":[{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"gradle.xml <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"codeStyles","children":[{"title":"Project.xml <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 53.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"gradlew.bat <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 176B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"imswy","children":[{"title":"databasedemo","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 728B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"imswy","children":[{"title":"databasedemo","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 383B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 911B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 14.78KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.38KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 6.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"ic_launcher_round.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false},{"title":"database.png <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"item_student.xml <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"activity_sqlite.xml <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"activity_litepal.xml <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"arrays.xml <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 549B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 6.24KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 10.17KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"assets","children":[{"title":"litepal.xml <span style='color:#111;'> 326B </span>","children":null,"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"imswy","children":[{"title":"databasedemo","children":[{"title":"litepal","children":[{"title":"LitepalActivity.java <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false},{"title":"LitepalDBOperator.java <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"adapter","children":[{"title":"StudentAdapter.java <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false}],"spread":false},{"title":"Utils.java <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"sqlite","children":[{"title":"SQLiteActivity.java <span style='color:#111;'> 10.76KB </span>","children":null,"spread":false},{"title":"SQLiteDBHelper.java <span style='color:#111;'> 853B </span>","children":null,"spread":false},{"title":"SQLiteDBOperator.java <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false}],"spread":false},{"title":"DateBaseApplication.java <span style='color:#111;'> 402B </span>","children":null,"spread":false},{"title":"bean","children":[{"title":"Student.java <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"proguard-rules.pro <span style='color:#111;'> 751B </span>","children":null,"spread":false}],"spread":true},{"title":"build.gradle <span style='color:#111;'> 601B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明