I have created a database with SQLite Browser and copied it into the files of my application. The tables have data in them. I can load the tables in views, sort, search and manipulate the contents with sql queries.
I have tried to write new records into tables (sql1.ExecNonQuery("INSERT INTO tblRoom VALUES(NULL,'Test1')") I get no errors. I used this same query in SQLite Browser on my computer to test the string and the record was added. When I run the app on a Samsung Tab A I get a return value from using x = sql1.ExecQuerySingleResult("SELECT last_insert_rowid() FROM tblRoom"), and no errors, but nothing has been written to the table.
After the insert I try to read the table in my app on the tablet, and the new record is not there. I can find the table stored on the tablet and view the table using SQLite Manager, and the record has not been added.
Do I need to add some permissions? I have tried everything I can think of; it should be simple to write new records and I feel I am missing something obvious. I have searched for an answer but can find nothing.
Would appreciate any help someone could provide.