Back to project page camp-food-manager.
The source code is released under:
GNU General Public License
If you think the Android project camp-food-manager listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.V4Creations.FSMK.campfoodmanager.db; /*from w w w.j av a2s . c om*/ import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DatabaseHelper extends SQLiteOpenHelper { String TAG = "DatabaseHelper"; DatabaseHelper(Context context) { super(context, CampFoodManagerDataBase.DATABASE_NAME, null, CampFoodManagerDataBase.DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CampFoodManagerDataBase.CREATE_TABLE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(CampFoodManagerDataBase.DROP_TABLE); db.execSQL(CampFoodManagerDataBase.CREATE_TABLE); } }