if(!dbfile.exists()){
try{
dbfile.createNewFile();
}
catch(IOException e){
e.printStackTrace();
}
}
sqlmInstance = SQLiteDatabase.openOrCreateDatabase(dbfile, null);
sqlmInstance.execSQL("create table abc(id text);");这个是写入数据库的例子,dbfile是存在的,但是为什么用SQLiteDatabase打开数据库写入数据库就不行呢?
执行完这个,然后去查询例子根本看不到table
插入数据也一直提示 没有这个table
求大神解救啊
------解决方案--------------------