I'm getting error:
android.database.sqlite.SQLiteException: near ":BE": syntax error
(code 1): , while compiling: DELETE FROM device WHERE
address=C4:BE:84:18:D5:A5
while trying to remove row from sqlite database.
public int removeDevice(String address) {
open();
int removedId = database.delete(MySQLiteHelper.TABLE_DEVICE
, MySQLiteHelper.KEY_ADDRESS + "=" + address, null);
close();
return removedId;
}
I can't figure out what's wrong.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…