Skip to content

“There is no default constructor available in android.database.sqlite.SQLitepenhelper” in Android Studio #19

Description

@sagarDevanga

Is this the way we are supposed to set our custom Constructor.

MyDatabaseHelper(Context context,AndroidDatabaseManager adm){

    super(context, DATABASE_NAME, null , DATABASE_VERSION);
    this.adm = adm;
}
public MyDatabaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, DATABASE_NAME, null , DATABASE_VERSION);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions