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

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 121
Registered: ‎11-29-2008
My Device: Not Specified

Question: blackberry device file directory

Hi all,

 

my application tried to save a wav file (music.wav) to the directory '/store/home/user/mymusic/' on the device, that works without giving me any error. When I tried to open and play the file '/store/home/user/mymusic/music.wav', it works on the device simulator but not on the actual device (that is on the simulator I can hear the music but not on the actual device). I don't know why I have this problem on the device and not on the simulator. Is there a file directory difference between the two?

 

Also I found that the music.wav file was actually stored in the directory '/device memory/home/user/mymusic/music.wav' on the device and not on the original directory that I specified which is '/store/home/user/mymusic'. Could this be the source of my problem? should I be using the directory '/device memory/home/user/mymusic' to store my music.wav file instead?

 

Thank you very much for your help...

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Question: blackberry device file directory

If you are runnning on the Storm 4.7.0.75, there is a know issue where the sound will not play through the speaker (only the headset).
Developer
Posts: 121
Registered: ‎11-29-2008
My Device: Not Specified

Re: Question: blackberry device file directory

Hmm, I am using the storm for testing, so may be this is the problem. I am going to check it again with a headphone then... do you know if there is a fix for this problem yet?

Developer
Posts: 121
Registered: ‎11-29-2008
My Device: Not Specified

Re: Question: blackberry device file directory

BTW, if v0.75 has problem with the speaker then how is it possible that I am able to play the music.wav file on the MEDIA application without using the headphone. Is there a work around or there is an unpublished api that is being used by MEDIA?