Hi,
I have an odd issue and only have one customer who has this issue.
My app has been working fine on this customers device since early this year, but now he has updated to the latest version of my app and it has stopped working.
The customer has a Blackberry z30 with Cobalts side loaded running Android 4.3.
I have never used Cobalts or a blackberry so I don't know anything about it.
In my app I have made no changes in regards to how the app loads or in regards to where the customer is having the issue, so I am guessing there is something with the customers device that is causing this or something else that I am over looking.
I have cleared the app data so everything is cleared and starting from a clean install of my app. (he has even deleted the app and re-installed it again).
My app creates a SQLite database and creates a table in it.
This seems to work fine & creates the table fine.
Here is what part of my table looks like:
The code to create the table:
(I know it's most likely not the best way in doing the above, but it has been working for the past 5 or so years fine)
When the user opens my app for the first time I have created a terms and conditions and the user needs to press the accept button before they can continue.
When the user presses the accept button it then updates the SQLite value in the table to say they accept the terms and conditions.
This is where it gets stuck.
The Code I am using is:
When I run the above on my device (as well as 1000+ other customers devices, since no one else has reported this issue) the above works fine. So I know the code should work and should put the value as yes in the table for terms_and_conditions.
When this customer who is having the issue presses the accept button (which triggers the above code), it writes the value as null even knowing it should of written it as yes.
I then used my Android device to accept the terms and conditions in the app, and copied my database to the customers device and it reads the value as yes. So I know it's reading the values fine but won't write the values correctly.
But it is creating the database and creating the tables in the database fine.
Any ideas on what could be causing it to write the value as null even knowing the code should of save it correctly since there is 1000+ other devices running this same code without any issues ?
I have an odd issue and only have one customer who has this issue.
My app has been working fine on this customers device since early this year, but now he has updated to the latest version of my app and it has stopped working.
The customer has a Blackberry z30 with Cobalts side loaded running Android 4.3.
I have never used Cobalts or a blackberry so I don't know anything about it.
In my app I have made no changes in regards to how the app loads or in regards to where the customer is having the issue, so I am guessing there is something with the customers device that is causing this or something else that I am over looking.
I have cleared the app data so everything is cleared and starting from a clean install of my app. (he has even deleted the app and re-installed it again).
My app creates a SQLite database and creates a table in it.
This seems to work fine & creates the table fine.
Here is what part of my table looks like:
The code to create the table:
B4X:
' ** Table: MAIN
Data = "CREATE TABLE main (id TEXT, default_connection_id TEXT, db_version TEXT, terms_and_conditions TEXT, password TEXT"
For k = 1 To 100
Data = Data & ", addon" & k & " TEXT"
Next
For k = 1 To 100
Data = Data & ", in_app_purchase" & k & " TEXT"
Next
Data = Data & ")"
SQL.execNonQuery(Data) ' create the table
Data = ""
Log("Table 'main' created")
Data = "INSERT INTO main VALUES ('0','','2.0.0','0',''"
For k = 1 To 100
Data = Data & ",''"
Next
For k = 1 To 100
Data = Data & ",''"
Next
Data = Data & ")"
SQL.execNonQuery(Data) ' load the default data into this table
(I know it's most likely not the best way in doing the above, but it has been working for the past 5 or so years fine)
When the user opens my app for the first time I have created a terms and conditions and the user needs to press the accept button before they can continue.
When the user presses the accept button it then updates the SQLite value in the table to say they accept the terms and conditions.
This is where it gets stuck.
The Code I am using is:
B4X:
SQL.ExecNonQuery("UPDATE Main SET terms_and_conditions = 'yes' WHERE id=0")
Log("Terms and Conditions Value = '" & SQL.ExecQuerySingleResult("SELECT terms_and_conditions FROM Main WHERE id=0") & "'")
When I run the above on my device (as well as 1000+ other customers devices, since no one else has reported this issue) the above works fine. So I know the code should work and should put the value as yes in the table for terms_and_conditions.
When this customer who is having the issue presses the accept button (which triggers the above code), it writes the value as null even knowing it should of written it as yes.
I then used my Android device to accept the terms and conditions in the app, and copied my database to the customers device and it reads the value as yes. So I know it's reading the values fine but won't write the values correctly.
But it is creating the database and creating the tables in the database fine.
Any ideas on what could be causing it to write the value as null even knowing the code should of save it correctly since there is 1000+ other devices running this same code without any issues ?