标签:
SQLiteOPenHelper
构造器之一
public SQLiteOpenHelper (Context context, String name, SQLiteDatabase.CursorFactory factory, int version)
Create a helper object to create, open, and/or manage a database. This method always returns very quickly. The database is not actually created or opened until one of getWritableDatabse() or getReadableDatabse() is called.
某些方法
public abstract void onCreate (SQLiteDatabase db)
Called when the database is created for the first time. This is where the creation of tables and the initial population of the tables should happen.
public abstract void onUpgrade (SQLiteDatabase db, int oldVersion, int newVersion)
public SQLiteDatabase getWritableDatabase ()
标签:
原文地址:http://www.cnblogs.com/mmyz-sysu-panjn/p/Android-SQLite.html