I have a small application (andorid studio) where I consult a database that I host in the sd, I do not have problems if I only make a select, but if I want to make an insert or an update it tells me that the base of data can not be opened in writing mode, the base is opened in this way
db=SQLiteDatabase.openDatabase(ruta+"/"+nombrecarpeta+"/"+nombre_bd,null,1);
I already tried
db=SQLiteDatabase.openOrCreateDatabase(ruta+"/"+nombrecarpeta+"
/"+nombre_bd,null);
db=SQLiteDatabase.openOrCreateDatabase(
ruta+"/"+nombrecarpeta+"/"+nombre_bd,null,null);
But it is the same result, it tells me that it can not be opened.
The question is: can you make updates to the database in an SD or just to consult?