Android SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database

前端 未结 1 879
不知归路
不知归路 2021-01-27 17:29

I have values in server json url and getting those values then storing into local database. But when i get those values and storing into local database i\'m getting Failed to op

1条回答
  •  不要未来只要你来
    2021-01-27 18:24

    you are closing the Db before making update or insert!

    swap the statements to:

    db.updateDetails(store);
    checkDB.close();
    

    0 讨论(0)
提交回复
热议问题