Android Question FilePicker (select file problem)

Marko Druskovic

Member
Licensed User
Longtime User
Hello!

I have problem with FilePicker
I want to be able to select only one file. In "selection mode" I put "0" but not working.

Please help
Thnx!
 

Attachments

  • greska.png
    greska.png
    70.3 KB · Views: 518

Marko Druskovic

Member
Licensed User
Longtime User
Thnx for replay, but what does it mean:

Initialize
(EventName AsString, root AsString, selectionMode AsInt, selectionType AsInt, extensions() AsString)
Selection Mode defines whether a single of
multiple Files/Directories have to be selected.
SINGLE_MODE and MULTI_MODE are the two selection modes,
See DialogConfigs for more info.
Set to Single Mode by default.

Selection Type defines that whether a File/Directory or both of these has
has to be selected.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
B4X:
    props.Initialize("",File.DirRootExternal,0,0,Null) 'Array As String(".jpg",".png",".pdf"))
    fp.Initialize("FilePicker")
    fp.Properties = props

works for me.... I get a list of folders and files. But only one file can be selected at a time....
 
Upvote 0