Android Question App not installed and new system

GaryK4

Member
Licensed User
Longtime User
I have a new computer and had to install everything from scratch.
I tested a number of small apps and they worked OK.

On my main app, my Note8 gives me an alert - App not installed with a ! alert icon. No further info is displayed. There were no errors displayed on the B4A side.

Next, I uninstalled the program and ran it in debug mode. This seemed to help.
Now the program starts, but I get an error on
SQL1.Initialize(File.DirRootExternal, "Golf_Match/DB/Golfers.db", True)

android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1806): Could not open database
#################################################################
Error Code : 1806 (SQLITE_CANTOPEN_EACCES)
Caused By : Application has no permission to open the specified database file.
(unknown error (code 1806): Could not open database)
#################################################################

I am able to open the database using an android app.

Any suggestions?
 

udg

Expert
Licensed User
Longtime User
Read about Runtime Permissions. There's a video from Erel too.
Your problem arises from the usage of File.DirRootExternal as the directory where the SQlite file is created/saved.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…