Android Question B4XPage

Sergey_New

Well-Known Member
Licensed User
Longtime User
I started using B4XPage and ran into a problem creating an application folder on my phone.

B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
    rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
    Wait For B4XPage_PermissionResult(permission As String, Result As Boolean)
    Log(Result)
    File.MakeDir(File.DirRootExternal, "test")
End Sub
There is permission in the manifest.
The folder was not created.
 

Attachments

  • test.zip
    9.4 KB · Views: 56

Sagenut

Expert
Licensed User
Longtime User
What is your TargetSDK in manifest?
Private app or for Google play?
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Try setting it to 26.
Anyway the problem it's not related to B4XPages.
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
Try lowering to 26
I tried it, the folder appeared. It’s strange, it works on B4A on version 29. What needs to be done so as not to downgrade the version?
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
Thanks, it works with version 29, but no higher.
 
Upvote 0
Top