are you using an Android 10 or 11 device for your tests?
it might be, that the extension was not updated and still uses the old location for the assets
the assets directory for the companion app is now in the ASD - Applicaiton Specific Directory
my sqlite extension correctly can load databases from the assets also for Android 10 and 11 devices...
Yes, Taifun is correct there. For Android <10 the path needs to be clarified to the MIT provided path for assets in Companion or for ASD (application specific directory) when compiled.
Good day.
After a long time, I returned to the project with SQLite.
I'm testing it on a mobile with Android 6.0.
I'm trying to find out if the db was imported correctly, but the table name from the db doesn't show me, so it's probably wrong ...
It will only show me this on my mobile:
DB vymazaná....
DB importovaná...
DB existuje....
(android_metadata)
/storage/emulated/0/Android/data/edu.mit.
appinventor.aicompanion3/files/assets/
Synopsa-ev.db
Hello.
Can anyone advise?
Is there a difference in using SQLite depending on the development environment in which the db is created?
I created the first db in SQLiteStudio, I created the second db in DB Browser (SQlite).
In neither case does the command want to work for me: call SQLite1 TableNames. Only show there (android_metadata).
Can't you send me your training db myhtml.db to try it out?
This time I tried to run it through BlueStacks.
Thanks.
Ondrej
I showed you in the blocks: when running companion...the database is in the assets, then open the database using the full path. The path will be different if you have Android version 9 or less and different again if using a compiled app.
Please advise on your test environment. You mentioned you were using Android 6 device earlier, is this when running the latest companion app in development mode ?