- Dec 12, 2022
- 357
- 2
Newbie trying to learn here.
I took the SQLiteLight3Demo that was in one of the forum posts and wanted to substitute a different SQL database.
All I did was change the SQLDateBaseName to the different db.
The new db is in the Files folder. I do have the RuntimePermissions library checked.
I get the "No such file or directory error":
First few lines (of many) of the log:
** Service (starter) Create ***
Error occurred on line: 52 (Starter)
java.io.FileNotFoundException: /data/user/0/b4a.sqlitelight3/files/virtual_assets/wineratings.db: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:492)
at java.io.FileInputStream.<init>(FileInputStream.java:160)
As it shows, the error triggers on line 52:
File.Copy(File.DirAssets, SQLDateBaseName, SQLDataBasePath, SQLDateBaseName)
SQLDateBaseName = "WineRatings.db" (correct), SQLDataBasePath = File.DirInternal.
I assumed the compiler would copy the necessary files to the appropriate...
I took the SQLiteLight3Demo that was in one of the forum posts and wanted to substitute a different SQL database.
All I did was change the SQLDateBaseName to the different db.
The new db is in the Files folder. I do have the RuntimePermissions library checked.
I get the "No such file or directory error":
First few lines (of many) of the log:
** Service (starter) Create ***
Error occurred on line: 52 (Starter)
java.io.FileNotFoundException: /data/user/0/b4a.sqlitelight3/files/virtual_assets/wineratings.db: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:492)
at java.io.FileInputStream.<init>(FileInputStream.java:160)
As it shows, the error triggers on line 52:
File.Copy(File.DirAssets, SQLDateBaseName, SQLDataBasePath, SQLDateBaseName)
SQLDateBaseName = "WineRatings.db" (correct), SQLDataBasePath = File.DirInternal.
I assumed the compiler would copy the necessary files to the appropriate...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید