Android Question Select a file

Touch

Active Member
Licensed User
Longtime User
Hi,
B4A implements a class to select a file? (native)
 

Touch

Active Member
Licensed User
Longtime User
I tried the dialog class, but using the theme Holo.light, the text color is same as background.
It seems very strange that B4A not implement a native class for file selection.
 
Upvote 0

Touch

Active Member
Licensed User
Longtime User
Thanks Erel,

this code select a file:
B4X:
Dim cc As ContentChooser
   
cc.Initialize("cc")
cc.Show("*/*","Open File")

but
B4X:
Sub cc_Result (Success As Boolean, Dir As String, FileName As String)
    Dim nameFile As String        'in Globals
    Dim pathDir As String        'in Globals
   
    If Success = True Then
        nameFile = FileName
        pathDir = Dir
    End If
End Sub
does not return the desired result
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…