Android Question SQLite does not write a table

Can you post more information please, and will try to help you.

What is your android version?
Did you get any error?
Are you running the app in a physical o emulator device?
What version of b4a are you using?
 
Upvote 0
I got the error.
 

Attachments

  • hata.png
    hata.png
    20.8 KB · Views: 326
Upvote 0
Try to uncomment the line:
File.Delete(File.DirInternal, "persons.db") ' only for testing, removes the database
This deletes the current database from your device and the program saves the default database on the device and then run the program, does it work?
If yes, uncomment the line above and run the program.
 
Upvote 0
I tested the program, I edited and entry and I added a new entry, this works as expected.
Returning to the Main activity shows the changes and leaving the program and restarting it shows also the changes.
So, how and where do you check the database to say that there are no changes?
 
Upvote 0
Back
Top