Android Question ContentChooser Filename

DT1111

Member
Licensed User
Longtime User
Hi

The result from the following code returns the path and the filename (storage/emulated/0/test.txt).

Any suggestions how I can obtain just the filename test.txt minus the path?

B4X:
Sub Button1_Click
    CC.Show("*/*", "Choose a file")
End Sub

Sub ContentChooser_Result (Success As Boolean, Dir As String, FileName As String)
    If Success Then
        Msgbox(FileName, "Result")
    End If
End Sub

Thanks.
 

DT1111

Member
Licensed User
Longtime User
Thanks Luca!

Do you know if ContentChooser is able to make the File Manager to start looking at a particular folder instead of at the default root directory?
 
Last edited:
Upvote 0
Top