Android Question [Resolved]java.lang.IllegalStateException: Cannot perform this operation because there is no current

Douglas Farias

Expert
Licensed User
Longtime User
Hi why i have this error when i run my app on debug?
what the cause?

 

Douglas Farias

Expert
Licensed User
Longtime User
resolved
added the permission and the correct folder make

code here

B4X:
    'cria pasta para salvar os textos
    If File.Exists(File.DirDefaultExternal, "clickfight" ) = False Then
    File.MakeDir(File.DirDefaultExternal, "clickfight")
    FP = File.Combine(File.DirDefaultExternal,"clickfight")
    Else
    FP = File.Combine(File.DirDefaultExternal,"clickfight")
    End If
   
   
    kv.Initialize(FP, "data")
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…