Android Question File Dialogue in b4a v5.8


Active Member
Licensed User
Hi all

I am working on version 5.80 of B4A, how can I display a file dialogue ?
I have tried:
Dim fd As FileDialog
fd.FilePath = File.DirRootExternal
Dim sf As Object = fd.ShowAsync("Select file", "Yes", "Cancel", "No", Null, False)
Wait For (sf) Dialog_Result(Result As Int)
If Result = DialogResponse.POSITIVE Then
  Log("File path: " & fd.FilePath)
  Log("File name: " & fd.ChosenName)
End If
But an error occurred in the wait statment.