Android Question Cant Open Database Exception - Android 6.0

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
I see today on Google Play Console errors reported about open database

Errors like this
By Android 6.0 - Moto G (osprey_uds)


I m tryed to find any bug about this but i really dont found.
On my app i use the KeyValueStore Class without any modification V1.01.

https://www.b4x.com/android/forum/t...ple-and-efficient-key-value-data-store.26317/

Here is the code used on my app

B4X:
       'CRIA E DECLARA PASTA DO APLICATIVO
    If File.ExternalWritable Then
    Try
        target = File.DirRootExternal
        File.MakeDir(target, "textreader")
         FP = File.Combine(target,"textreader")
        File.MakeDir(target, "text")
        fptextos = File.Combine(target,"text")
    Catch
        target = File.DirDefaultExternal
        File.MakeDir(target, "textreader")
         FP = File.Combine(target,"textreader")
        File.MakeDir(target, "text")
        fptextos = File.Combine(target,"text")
    End Try
    Else
        target = File.DirInternal
        File.MakeDir(target, "textreader")
         FP = File.Combine(target,"textreader")
        File.MakeDir(target, "text")
        fptextos = File.Combine(target,"text")
    End If
  
  
    'CRIA OU INICIA O BANCO DE DADOS SQLITE
    kv.Initialize(FP, "data")

The kv its the KeyValueStore db
Note: I m not using dirassets.

Here its my manifest

I really dont know where its the error, i dont use any other db, only keyvaluestore
Someone know errors like this on KeyvalueStore class?


Thx
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

kurarisu_kitsune

New Member
Hi, i am a newbie. And I have the same error. I have read some threads saying that I should copy my database file from DirAssets to DirInternal. How can i do that in my android phone? Thank you so much.

-This is for our thesis. <3
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…