Created
October 22, 2012 11:06
-
-
Save JavaDeveloper/3931016 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeContentProvider extends ContentProvider { | |
private HelperDatabase helper; | |
@Override | |
public boolean onCreate() { | |
helper = new HelperDatabase(getContext()); | |
return true; | |
} | |
... | |
} | |
public class HelperDatabase extends SQLiteOpenHelper { | |
private static final String DATABASE_NAME = "dbname.db"; | |
private static final int DATABASE_VERSION = 1; | |
public HelperDatabase(Context ctx){ | |
super(ctx, DATABASE_NAME, null, DATABASE_VERSION); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment