What happens is that at the beginning The database name without the extension ".db" and when reviewing data does not appear but if I create a new one with the extension ".db" if it appears, this is uncomfortable because I can not see what is happening in the db. Does anyone know how to rename the database in sqlite of android?
private static final int DATABASE_VERSION = 1;
private static final String DATABASE_NAME = "BDPersons";
String tablaPerson = "create table person(" +
"id varchar(100) primary key," +
"nombre varchar(30))";
public BaseDatos(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(tablaPerson);
}