Try this
public class DataBaseHelper extends SQLiteOpenHelper { private static final String DATENBANK_NAME = "yourdatabase.db"; private static final int DATENBANK_VERSION = 1;
public DataBaseHelper(Context context) {
super(context, DATENBANK_NAME, null, DATENBANK_VERSION);
}
public void onCreate(SQLiteDatabase db) {
db.execSQL(PartialTripTbl.SQL_CREATE);
}
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.execSQL("DROP TABLE IF EXISTS " + PartialTripTbl.TABLE_NAME);
onCreate(db);
}
}
fmo
2010-07-29 22:26:04