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

Java Development

New Developer
Posts: 1
Registered: ‎02-19-2009
My Device: Not Specified

Audio Player

I want to envoke an audio player in my application using 

Player p = Manager.createPlayer("file:///SDCard/BlackBerry/music/03.mp3");


Everytime it gives me error like "locator does not reference a valid media file."

I'm wondering what is the valid path for the SDCard on a simulator?


Thank you. 

Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Audio Player

Hi, Read the audio file using FileConnection API and get the Inputstream and create player.

Use Search. "Accept Solution" If the problem is resolved.