Back to project page ShoppingList.
The source code is released under:
GNU General Public License
If you think the Android project ShoppingList 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 net.sledzdev.shoppinglist.content; /*from www. j a v a2s . co m*/ import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by Mariusz on 22.11.13. */ public class DatabaseHelper extends SQLiteOpenHelper { private static final String NAME = "shopping.db"; private static final int VERSION = 5; public DatabaseHelper(Context context) { super(context, NAME, null, VERSION); } @Override public void onCreate(SQLiteDatabase db) { ItemsTable.onCreate(db); ListsTable.onCreate(db); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { ItemsTable.onUpdate(db, oldVersion, newVersion); ListsTable.onUpdate(db, oldVersion, newVersion); } }