android中关于sqlite数据库的操作问题

大蒜超人 2010-09-19 10:40:23
通常都是新建一个DBHelp类来继承sqliteopenhelper,在构造函数中
public DBHelp(Context context)
{
super(context,database,factory,version);
}
其中的context和factory分别是什么意思?~
...全文
76 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
牛叔 2010-09-19
  • 打赏
  • 举报
回复

context to use to open or create the database
name of the database file, or null for an in-memory database
factory to use for creating cursor objects, or null for the default
version number of the database (starting at 1); if the database is older, onUpgrade(SQLiteDatabase, int, int) will be used to upgrade the database

80,488

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧