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

Reply
Developer
Posts: 374
Registered: ‎02-12-2011
My Device: Bold 9780
My Carrier: Wind Mobile
Accepted Solution

Possible to play custom sound in app?

[ Edited ]

I know how to play user defined  sounds by launching the blackberry browser, and also know how to play by using resources included by me in my project.

 

However, is it possible to play user defined sound files in the background of my application (ie. not using the browser which pops up and interferes with my app).

Developer
Posts: 19,633
Registered: ‎07-14-2008
My Device: Not Specified

Re: Possible to play custom sound in app?

Yes, and not too hard either.  Just look at the Player class.  Search for samples too. 

 

The formats supported depend on the OS level and device, but I generally use mp3s and these have been supported for all OS's you are likely to find. 

Developer
Posts: 374
Registered: ‎02-12-2011
My Device: Bold 9780
My Carrier: Wind Mobile

Re: Possible to play custom sound in app?

Thanks peter. I'll have a look.

Is there information somewhere which tells me what file types are supported by Player in different OS versions?
Developer
Posts: 19,633
Registered: ‎07-14-2008
My Device: Not Specified

Re: Possible to play custom sound in app?