找回密码
 立即注册
SQLiteDemoSQLiteclasscom | android开发 2022-10-29 54 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
项目中首要包括如下一个首要的文件:1、DbNews.java与数据库及数据库表对应的类,包括内部类News,与news表对应。首要提供列名引证及对表的封装。2、DBHelper.java封装的数据库操作类,包括对数据库的多种操作。其内部类DBOpenHelper承继自SQLiteOpenHelper,担任数据库的创建、升级等。初始化数据库的同时存入了5条记录。3、SQLiteDemo.java承继自ListActivity,关于显示数据库中的记录。4、SeeDetailNews。java关于显示每一条详细的记录。5、布局文件不再介绍。
SQLiteDemo\bin\com\kf\sqlite\DBHelper$DBOpenHelper.class
SQLiteDemo\bin\com\kf\sqlite\DBHelper.class
SQLiteDemo\bin\com\kf\sqlite\DbNews$News.class
SQLiteDemo\bin\com\kf\sqlite\DbNews.class
SQLiteDemo\bin\com\kf\sqlite\R$attr.class
SQLiteDemo\bin\com\kf\sqlite\R$drawable.class
SQLiteDemo\bin\com\kf\sqlite\R$id.class
SQLiteDemo\bin\com\kf\sqlite\R$layout.class
SQLiteDemo\bin\com\kf\sqlite\R$string.class
SQLiteDemo\bin\com\kf\sqlite\R.class
SQLiteDemo\bin\com\kf\sqlite\SeeDetailNews$1.class
SQLiteDemo\bin\com\kf\sqlite\SeeDetailNews.class
SQLiteDemo\bin\com\kf\sqlite\SQLiteDemo.class
SQLiteDemo\bin\classes.dex
SQLiteDemo\bin\resources.ap_
SQLiteDemo\bin\SQLiteDemo.apk
SQLiteDemo\gen\com\kf\sqlite\R.java
SQLiteDemo\res\drawable-hdpi\icon.png
SQLiteDemo\res\drawable-ldpi\icon.png
SQLiteDemo\res\drawable-mdpi\icon.png
SQLiteDemo\res\layout\detail_views.xml
SQLiteDemo\res\layout\main.xml
SQLiteDemo\res\values\strings.xml
SQLiteDemo\src\com\kf\sqlite\DBHelper.java
SQLiteDemo\src\com\kf\sqlite\DbNews.java
SQLiteDemo\src\com\kf\sqlite\SeeDetailNews.java
SQLiteDemo\src\com\kf\sqlite\SQLiteDemo.java
SQLiteDemo\.classpath
SQLiteDemo\.project
SQLiteDemo\AndroidManifest.xml
.....

(The project mainly includes the following primary files: 1. DbNews.java is the class corresponding to the database and database tables, including the internal class News, which corresponds to the news table. It mainly provides column name citation and table encapsulation. 2. DBHelper.java encapsulates the database operation class, including multiple operations on the database. Its internal class DBOpenHelper is inherited from SQLiteOpenHelper and serves as the creation and upgrade of databases. Five records are stored while initializing the database. 3. SQLiteDemo.java, inherited from ListActivity, is about displaying records in the database. 4、SeeDetailNews。 Java displays each detailed record. 5. Layout files are no longer introduced.
SQLiteDemo\bin\com\kf\sqlite\DBHelper$DBOpenHelper.class
SQLiteDemo\bin\com\kf\sqlite\DBHelper.class
SQLiteDemo\bin\com\kf\sqlite\DbNews$News.class
SQLiteDemo\bin\com\kf\sqlite\DbNews.class
SQLiteDemo\bin\com\kf\sqlite\R$attr.class
SQLiteDemo\bin\com\kf\sqlite\R$drawable.class
SQLiteDemo\bin\com\kf\sqlite\R$id.class
SQLiteDemo\bin\com\kf\sqlite\R$layout.class
SQLiteDemo\bin\com\kf\sqlite\R$string.class
SQLiteDemo\bin\com\kf\sqlite\R.class
SQLiteDemo\bin\com\kf\sqlite\SeeDetailNews$1.class
SQLiteDemo\bin\com\kf\sqlite\SeeDetailNews.class
SQLiteDemo\bin\com\kf\sqlite\SQLiteDemo.class
SQLiteDemo\bin\classes.dex
SQLiteDemo\bin\resources.ap_
SQLiteDemo\bin\SQLiteDemo.apk
SQLiteDemo\gen\com\kf\sqlite\R.java
SQLiteDemo\res\drawable-hdpi\icon.png
SQLiteDemo\res\drawable-ldpi\icon.png
SQLiteDemo\res\drawable-mdpi\icon.png
SQLiteDemo\res\layout\detail_ views.xml
SQLiteDemo\res\layout\main.xml
SQLiteDemo\res\values\strings.xml
SQLiteDemo\src\com\kf\sqlite\DBHelper.java
SQLiteDemo\src\com\kf\sqlite\DbNews.java
SQLiteDemo\src\com\kf\sqlite\SeeDetailNews.java
SQLiteDemo\src\com\kf\sqlite\SQLiteDemo.java
SQLiteDemo\.classpath
SQLiteDemo\.project
SQLiteDemo\AndroidManifest.xml
.....)

[下载]15450884209.rar




上一篇:Android AppWidget 开发实例
下一篇:android版本案例分析