SQLiteOpenHelper Error (8,8)

0

I'm starting to program in Android and I want to make a class with a database.

package josephisaac.com.wmvendas;

import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class BancoDados extends SQLiteOpenHelper{

    @Override
    public void onCreate(SQLiteDatabase db){

}
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){

    }
}

When I type the above code in my Android Studio and run it, the following error appears:

Error:(8, 8) error: no suitable constructor found for
SQLiteOpenHelper(no arguments) constructor
SQLiteOpenHelper.SQLiteOpenHelper(Context,String,CursorFactory,int) is
not applicable (actual and formal argument lists differ in length)
constructor SQLiteOpenHelper.SQLiteOpenHelper (Context, String, CursorFactory, int, DatabaseErro
Handler) is not applicable (actual and formal argument lists differ in
length)

Could anyone help me?

    
asked by anonymous 19.07.2018 / 20:47

0 answers