Hi everyone,
My problem is that my app I made and was working under Android 4.2.2 with the 2 tablets I got, now is not working with my new smartphone : the difference ? it's running under Android 5.0.2.
When I compile (debug o release mode) I got this error message :
The other big difference with my previous device is that the new one has no sdcard slot.
I updated the path configuration to C:\Android\platforms\android-21\android.jar.
I tried with DirInternal and testing If File.ExternalWritable = True but no...
There are a couple of days that I'm testing everything I can imagine but nothing is working : any help is apreciated.
Of course I'm in debugging mode with this Lollipop device.
Thanx in advance.
My problem is that my app I made and was working under Android 4.2.2 with the 2 tablets I got, now is not working with my new smartphone : the difference ? it's running under Android 5.0.2.
When I compile (debug o release mode) I got this error message :
it stops on the line of code with the SQL.Initialize:android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
B4X:
If File.Exists(File.DirDefaultExternal & "/Encuestas", "latbusdev.db") = False Then
'File.Delete(File.DirRootExternal & "/Encuestas", "latbusdev.db") ' only for testing, removes the database
SQL1.Initialize(File.DirDefaultExternal & "/Encuestas", "latbusdev.db", True)
CreateDataBases
'check if the database already exists
Else
'if not, initialize it
SQL1.Initialize(File.DirDefaultExternal & "/Encuestas", "latbusdev.db", True)
'and create it
End If
I updated the path configuration to C:\Android\platforms\android-21\android.jar.
I tried with DirInternal and testing If File.ExternalWritable = True but no...
There are a couple of days that I'm testing everything I can imagine but nothing is working : any help is apreciated.
Of course I'm in debugging mode with this Lollipop device.
Thanx in advance.