Android Open Source - LockScreen D B Helper






From Project

Back to project page LockScreen.

License

The source code is released under:

Apache License

If you think the Android project LockScreen listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.github.pongdang.lockscreentest;
//from   w w w  .j  av a2  s. co  m
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper{

  public DBHelper(Context context) {
    super(context, "LockScreenTest.db", null, 1);
  }

  @Override
  public void onCreate(SQLiteDatabase db) {
    db.execSQL("CREATE TABLE lock (custom INTEGER NOT NULL);");
  }

  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    db.execSQL("DROP TABLE IF EXISTS lock");
    onCreate(db);
  }
}




Java Source Code List

com.github.pongdang.lockscreentest.DBHelper.java
com.github.pongdang.lockscreentest.MainActivity.java
com.github.pongdang.lockscreentest.ScreenReceiver.java
com.github.pongdang.lockscreentest.ScreenService.java