Android Open Source - MyJournal Journal Db Helper






From Project

Back to project page MyJournal.

License

The source code is released under:

GNU General Public License

If you think the Android project MyJournal 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.shane87.myjournal;
/*from  w w w . j av  a  2  s  .c  o  m*/
import com.shane87.myjournal.JournalContract.JournalDb;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class JournalDbHelper extends SQLiteOpenHelper{
  
  public static final int DATABASE_VERSION = 1;
  public static final String DATABASE_NAME = "JournalEntries.db";
  
  public JournalDbHelper(Context context)
  {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);
  }
  
  public void onCreate(SQLiteDatabase db)
  {
    db.execSQL(JournalDb.getSqlCreateEntries());
  }
  
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
  {
    
  }

}




Java Source Code List

com.shane87.myjournal.EditEntryActivity.java
com.shane87.myjournal.JournalAdapter.java
com.shane87.myjournal.JournalContract.java
com.shane87.myjournal.JournalDbHelper.java
com.shane87.myjournal.JournalEntry.java
com.shane87.myjournal.Journal.java
com.shane87.myjournal.MainActivity.java