3
I’m having a problem with my project Android
. When I execute a delete
at the bank sqlite
, I get as return the following log message:
W/FileUtils: Failed to chmod(/storage/sdcard/Cardapio Digital/Database/dbcardapio.sqlite):
android.system.ErrnoException: chmod failed: EPERM (Operation not permitted)
public class Pedidosdao {
Context context;
variaveis v;
SQLiteDatabase db;
public PedidosDao(Context context, variaveis v) {
this.v = v;
this.context = context;
}
public void deletaItem(int codigo){
db = context.openOrCreateDatabase(v.getPathBanco(),Context.MODE_WORLD_WRITEABLE,null);
try{
db.execSQL("DELETE FROM PEDIDOS WHERE ID = "+codigo+" ");
}catch(Exception e){
e.printStackTrace();
}
db.close();
}
Ask the question what code you’re using.
– ramaral