For example:įilelist = File.ListFiles(File.DirAssets) ' 0 Then 'Do not forget to load the layout file created with the visual designer. Sub Activity_Create(FirstTime As Boolean) 'These variables can only be accessed from this module. ![]() 'These global variables will be redeclared each time the activity is created. 'These variables can be accessed from all modules. 'These global variables will be declared once when the application starts. Therefore any help from someone taking a fresh look at the code and the logs would be much appreciated. I have been struggling with this error for the better part of yesterday and today - so much so that I'm concerned I'm missing something obvious. I also opened the file with SQLlite Browser from the files folder and it opens with no errors and the data is present. does not exist in the folder)Īs part of error investigation I subsequently included code in the app which logs the file names that are present in the Files.DirAssets prior to the error occurring and the database file appears in the log - (see attached log). Researching the error (in B4X forums and google) it seems the most likely explanation for the error is that the database cannot be found (i.e. ![]() When I attempt to initialize the database the app fails with a SQL Error " : unknown error (code 1294 SQLITE_CANTOPEN_ENOENT): Could not open database" The app fails on line 45 of the included code I included the db in the files folder and according to information from various forum posts it should get installed in the Files.DirAssets folder when deployed to the phone ![]() (experimenting with including a db with the app) I have a simple app which includes a small SQLite database.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |