My app makes use of a local (on device) SQLite database/tables.
All works well with all makes of phones, but not on Huawei phones.
On Huawei, I can write to the SQLite table and query the tables.
However, when I Delete a record within a table on a Huawei device, it does not Delete the correct record.
I use: Starter.DB.ExecNonQuery("DELETE FROM myleads WHERE id = " & MyID) to Delete the record.
MyID is the unique record ID (obtained from the remote MySQL database table).
Something seems dodgy....
My code snippet:
Above works on all phones, EXCEPT HUAWEI
All works well with all makes of phones, but not on Huawei phones.
On Huawei, I can write to the SQLite table and query the tables.
However, when I Delete a record within a table on a Huawei device, it does not Delete the correct record.
I use: Starter.DB.ExecNonQuery("DELETE FROM myleads WHERE id = " & MyID) to Delete the record.
MyID is the unique record ID (obtained from the remote MySQL database table).
Something seems dodgy....
My code snippet:
B4X:
Sub btnMyLeadsDelete_Click
Dim Index As Int = clv2.GetItemFromView(Sender)
Dim text As String = expandable.GetValue(Index)
Log(text)
Dim MyID As String = txtID.text
MyID = MyID.Trim
Starter.DB.ExecNonQuery("DELETE FROM myleads WHERE id = " & MyID)
Log("LEAD DELETED: " & MyID)
ToastMessageShow("LEAD HAS BEEN DELETED", False)
CallSubDelayed(Me, "loadMyLeads")
End Sub
Above works on all phones, EXCEPT HUAWEI