打开SQLite数据库,首先要建立一个DatabaseHelper类的实例,然后,再获得数据库: DatabaseHelper mDBH; SQLiteDatabase db; mDBH = new DatabaseHelper(MainActivity.this); db = mDBH.getWritableDatabase(); getWritableDatabase()的解释是 Create and/or open a database that will be used for read