Android Open Source - forklift Cantons Asset Sqlite Open Helper






From Project

Back to project page forklift.

License

The source code is released under:

Apache License

If you think the Android project forklift 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.example.forklift;
/*ww  w  .  j a  va  2  s .  c om*/
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import ch.gluecode.forklift.AbstractAssetSqliteOpenHelper;

public class CantonsAssetSqliteOpenHelper extends AbstractAssetSqliteOpenHelper {

    private static final String ASSET_NAME = "cantons.db";

    private static final String DATABASE_NAME = "cantons.db";

    private static final int DATABASE_VERSION = 1;

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

    @Override
    protected void onConfigure(SQLiteDatabase db) {
        // do nothing
    }

    @Override
    protected void onPostCopy(SQLiteDatabase db, int oldVersion, int newVersion) {
        // do nothing
    }
}




Java Source Code List

ch.gluecode.forklift.AbstractAssetSqliteOpenHelper.java
ch.gluecode.forklift.AbstractBundledSqliteOpenHelper.java
ch.gluecode.forklift.AbstractResourceSqliteOpenHelper.java
ch.gluecode.forklift.BundledSqliteOpenHelperException.java
com.example.forklift.CantonListFragment.java
com.example.forklift.CantonsAssetSqliteOpenHelper.java
com.example.forklift.MountainCursorAdapter.java
com.example.forklift.MountainListFragment.java
com.example.forklift.MountainsResourceSqliteOpenHelper.java
com.example.forklift.SampleActivity.java