I have a JSONParser class where I have this:
Database db = new Database(/* Need context here! */);
In the Database class I have this:
public Database(Context context) {
super(context, DATABASE_NAME, null, 1);
SQLiteDatabase db = this.getWritableDatabase();
}
How am I supposed to give a context in the Database constructor?
Thanks for any help...