When you call getWritableDatabase()for the first time, it will call the following methods, according to the Android documentation ...
onCreate(SQLiteDatabase)
onUpgrade(SQLiteDatabase, int, int)
onOpen(SQLiteDatabase)
You do not have code in the method onCreate()- you need to do something here before it works, for example ...
public void onCreate(SQLiteDatabase database) {
database.openOrCreateDatabase("/come/example/mydatabase",null);
}
checkDataBase() , , openDatabase() - , , . , - .
, - DBHelper, super(). ...
DBHelper helper = new DatabaseHelper(context);