Android Open Source - forklift Mountains Resource 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;
/*from   w  ww.  j a  v  a 2s.  c o m*/
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import ch.gluecode.forklift.AbstractResourceSqliteOpenHelper;

public class MountainsResourceSqliteOpenHelper extends AbstractResourceSqliteOpenHelper {

    private static final int RAW_RESOURCE = R.raw.mountains;

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

    private static final int DATABASE_VERSION = 1;

    public MountainsResourceSqliteOpenHelper(Context context) {
        super(context, RAW_RESOURCE, DATABASE_NAME, DATABASE_VERSION);
    }

    @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