Hi all
i m using the class keyvaluestore on my apps
https://www.b4x.com/android/forum/t...ple-and-efficient-key-value-data-store.26317/
and today i see this error on 3 of my apps today on Google Play Console.
Error:
Thats strange, because i have the permission, my targetsdk is 20 and i check if the file is Writable
Here is the code used to create the app folder and load the kvs.
What the problem here?
this app dont have activity´s only the main.
i make a check if this IsInitialized too but dont solved the problem.
what can cause this problem?
PS: i dont made any changes on KVS class code.
i m using the class keyvaluestore on my apps
https://www.b4x.com/android/forum/t...ple-and-efficient-key-value-data-store.26317/
and today i see this error on 3 of my apps today on Google Play Console.
Error:
Galaxy Y (GT-S5360B) - Android 2.3.3 - 2.3.7android.database.sqlite.SQLiteException: unable to open database file
at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1866)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:822)
at anywheresoftware.b4a.sql.SQL.Initialize(SQL.java:37)
at com.afina.iddesenvolvimento.keyvaluestore._initialize(keyvaluestore.java:291)
at com.afina.iddesenvolvimento.main._activity_create(main.java:513)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.afina.iddesenvolvimento.main.afterFirstLayout(main.java:102)
at com.afina.iddesenvolvimento.main.access$000(main.java:17)
at com.afina.iddesenvolvimento.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)
Thats strange, because i have the permission, my targetsdk is 20 and i check if the file is Writable
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="20"/>
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
Here is the code used to create the app folder and load the kvs.
B4X:
If File.ExternalWritable Then
Try
target = File.DirRootExternal
File.MakeDir(target, "afinadorviolao")
fp = File.Combine(target,"afinadorviolao")
Catch
target = File.DirDefaultExternal
File.MakeDir(target, "afinadorviolao")
fp = File.Combine(target,"afinadorviolao")
End Try
Else
target = File.DirInternal
File.MakeDir(target, "afinadorviolao")
fp = File.Combine(target,"afinadorviolao")
End If
If Not(kv.IsInitialized) Then kv.Initialize(fp, "data")
What the problem here?
this app dont have activity´s only the main.
i make a check if this IsInitialized too but dont solved the problem.
what can cause this problem?
PS: i dont made any changes on KVS class code.