我正在尝试学习教程,这里是链接:http ://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
一切正常,但我只想知道在哪里放置这段代码:
DataBaseHelper myDbHelper = new DataBaseHelper();
myDbHelper = new DataBaseHelper(this);
try {
myDbHelper.createDataBase();
} catch (IOException ioe) {
throw new Error("Unable to create database");
} try {
myDbHelper.openDataBase();
} catch (SQLException sqle){
throw sqle;
}