Android Open Source - ProjectTimer Timer Db Helper






From Project

Back to project page ProjectTimer.

License

The source code is released under:

Copyright (c) 2012 Alex Wu 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 Software w...

If you think the Android project ProjectTimer 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.cooltofu.db;
//from   w ww  .  j a  va  2s  . c om
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class TimerDbHelper extends SQLiteOpenHelper {
  private static final String DATABASE_NAME = "app_data";

  private static final int DATABASE_VERSION = 1;

  public TimerDbHelper(Context context) {
    super(context, DATABASE_NAME, null, DATABASE_VERSION);
    
  }

  // Method is called during creation of the database
  @Override
  public void onCreate(SQLiteDatabase database) {
    TimerTable.onCreate(database);
  }

  // Method is called during an upgrade of the database,
  // e.g. if you increase the database version
  @Override
  public void onUpgrade(SQLiteDatabase database, int oldVersion,
      int newVersion) {
    TimerTable.onUpgrade(database, oldVersion, newVersion);
  }
}




Java Source Code List

com.cooltofu.Eula.java
com.cooltofu.MoreScreen.java
com.cooltofu.MyTimer.java
com.cooltofu.ProjectTimerActivity.java
com.cooltofu.TimeUtil.java
com.cooltofu.db.TimerDbAdapter.java
com.cooltofu.db.TimerDbHelper.java
com.cooltofu.db.TimerTable.java
com.cooltofu.util.Base64DecoderException.java
com.cooltofu.util.Base64.java
com.cooltofu.util.IabException.java
com.cooltofu.util.IabHelper.java
com.cooltofu.util.IabResult.java
com.cooltofu.util.Inventory.java
com.cooltofu.util.Purchase.java
com.cooltofu.util.Security.java
com.cooltofu.util.SkuDetails.java