Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 27
Registered: ‎12-02-2012
My Device: BB10
My Carrier: CMCC

Re: Are there convinient way to show a file selection dialog?

Thanks, i wan't to select only .mp3 files. How to filter these out of music files?

Highlighted
Developer
Posts: 27
Registered: ‎12-02-2012
My Device: BB10
My Carrier: CMCC

Re: Are there convinient way to show a file selection dialog?

[ Edited ]

I got it :-D

 

FilePicker {
            id: idFileSelector
            type: FileType.Music
            title: "Select MP3 Music"
            directories: [
                "/accounts/1000/shared/music"
            ]
            filter: [
                "*.mp3"
            ]

    }

}

Contributor
Posts: 13
Registered: ‎06-14-2011
My Device: -
My Carrier: -

Re: Are there convinient way to show a file selection dialog?

Thanks buddy! filtering by file extension is awesome