Deleted DataBaseHelper and added it as inner class in DataHandler
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package org.ddnss.sfs.git.wdg.vokabel_trainer;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
public class DataBaseHelper extends SQLiteOpenHelper {
|
||||
|
||||
public DataBaseHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
|
||||
super(context, name, factory, version);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(SQLiteDatabase db) {
|
||||
db.execSQL("create table if not exists vocTable(deutsch text not null , englisch text not null);");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user