Back to project page test-gradle.
The source code is released under:
Copyright (c) <2013> <Paul Estrada> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the S...
If you think the Android project test-gradle 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.example.listexample.sql; //from w ww. j a v a2s. co m import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class MySqliteHelper extends SQLiteOpenHelper { private static final String TAG = "MySqliteHelper"; public MySqliteHelper(Context context) { super(context, DBConstants.DATABASE_NAME, null, DBConstants.DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { Log.e(TAG, "onCreate"); db.execSQL(DBConstants.TABLE_USERS_DDL); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.e(TAG, "onUpgrade oldVer: "+ oldVersion + " newVer: " + newVersion); // db.execSQL(DBConstants.ALTER_TABLE_USERS_DDL); } }