Pb with SQLite

ciginfo

Well-Known Member
Licensed User
Longtime User
Hello
In the example given here, the database is created, filled and then read at the same time. It works.
http://www.b4x.com/forum/basic4android-getting-started-tutorials/6736-sql-tutorial.html#post39108
I thought the database was created and it was possible to initiate requests. This does not work, it seems that I have to recreate the database.
Thus they joined in the application I have to first activate the "Enregistrer" button before you can read the table using the button "Revoir"
Where is the problem?
thank you
 

Attachments

  • essai_sql.zip
    10.1 KB · Views: 158

ciginfo

Well-Known Member
Licensed User
Longtime User
I understand the nuances in the changes you have made, but I do not always access to the database created for the first time. In other words, if I open the app and click directly on the button "Revoir" I have no access to what I had written in the database to the previous opening of the App.
 
Upvote 0

ciginfo

Well-Known Member
Licensed User
Longtime User
Exactly. Perhaps because I try on the emulator and not on the device. With "File.DirDefaultExternal" it doesn't find SD card? What do you think about?
 
Upvote 0
Top