摘要: 数据库的操作 ()自定义一个 class DBOpenHelper extends SQLiteOpenHelper1. 生成 DBOponeHelper 的构造方法 4个参数 上下文 ,数据库名,游标工厂, 数据库版本号(context, "blacknumber.db", null, 1);2. 重写 onCreate 方法 创建数据库的表. Db.execSQL();约定 根据sqlite的标准 最好把组件的名字设置为_idCursorAdpater "_id" notfound exception3. onUpgrade 帮助更新数据库的表(Bl 阅读全文
posted @ 2012-07-25 17:25 ligang305 阅读(716) 评论(0) 推荐(0)