Android Question api 19 and sqlite.SQLiteException: unable to open database file

samperizal

Active Member
Licensed User
Longtime User
hi

I updated the api to 19.0.3 and run the application fails
android.database.sqlite.SQLiteException: unable to open database file



DBFileName = "QUOJI.db"
DBFilePath = File.DirRootExternal
sql_conexion.Initialize (DBFilePath, DBFileName, True)

because this error occurs?


thank you
 

keirS

Well-Known Member
Licensed User
Longtime User
File permission changes is your problem. You need to add the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions to your manifest file.
 
Upvote 0

samperizal

Active Member
Licensed User
Longtime User
greetings.

the error persists



I changed the editor manifiest


'This code will be Applied to the manifest file During compilation.
'You do not need to modify it in MOST cases you.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText (
<uses-sdk android: minSdkVersion = "4" android: targetSdkVersion = "14" />
<uses-permission android: name = "android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android: name = "android.permission.READ_EXTERNAL_STORAGE" />
<supports-screens android: largeScreens = "true"
android: normalScreens = "true"
android: smallScreens = "true"
android: anyDensity = "true" />)

SetApplicationAttribute (android: icon, "@ drawable / icon")
SetApplicationAttribute (android: label, "$ LABEL $")
'End of default text.

missing?


thank you
 
Upvote 0
Top