Skip to content

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

@sagarDevanga

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);
}

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