Android SQLite Update not working

前端 未结 4 696
野趣味
野趣味 2020-12-11 08:48

I am trying to update one column for any number of rows.

Here is the function:

public void setAwardsSyncComplete(String[] ids) {

    String inArray         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 09:30

    You need to call db.setTransactionSuccussful() after db.update otherwise any changes will be rolled back when you call endTransaction().

提交回复
热议问题