I want to create a SQLite database.
So I followed a tutorial and I have these two lines in my MainActivity that create the database.
LugaresDB lugaresDB = new LugaresDB(getApplicationContext());
SQLiteDatabase db = lugaresDB.getWritableDatabase();
My question: I expected just the first line to create the database, but it doesn't create it.
I have to add the second line. Why?