Android Question SQLite does not write a table

I found the sample application from here.

I can do operations in the application. But I checked the database. I don't see what I do.
 

Attachments

  • SQLiteLight2.zip
    18.2 KB · Views: 110

Myr0n

Active Member
Licensed User
Longtime User
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: 122
Upvote 0

klaus

Expert
Licensed User
Longtime User
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
Updated Project.
My problem is,
I'm doing transactions in the application.
Operations do not appear in the database.
 

Attachments

  • SQLiteLight.zip
    19.3 KB · Views: 114
Last edited:
Upvote 0

klaus

Expert
Licensed User
Longtime User
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
Top