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

Web and WebWorks Development

Reply
Developer
Posts: 39
Registered: ‎03-01-2011
My Device: PlayBook
My Carrier: AT&T

select music file for tablet

sorry if it's been covered - searched with no help.  all i'm trying to do is push a button to pull up a directory, find an mp3 i have in my music folder, and assign that mp3 to another button.  this was very easy with the APIs on palm/hp, but i haven't found any code samples that do something similar.  any help would be appreciated!

Contributor
Posts: 48
Registered: ‎03-30-2011
My Device: Playbook

Re: select music file for tablet

I can't find a way to open the file browser within web works, but the API reference for listing files and directories may be of use?

https://bdsc.webapps.blackberry.com/html5/apis/blackberry.io.dir.html
Highlighted
gwy
New Contributor
Posts: 9
Registered: ‎02-09-2011
My Device: Curve
My Carrier: Sprint

Re: select music file for tablet

I'm sort of asking a similar question here -- you can get the list of files with 

blackberry.io.dir.listFiles(blackberry.io.dir.appDirs.shared.music.path);

 

But I still can't get the files to play using those paths.