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

Android™ Development

Regular Contributor
Posts: 63
Registered: ‎12-24-2010
My Device: Torch

with, sound quality went straight to hell

[ Edited ]

I upgraded from to . That solved the 'SharedPreferences' issue I was talking about in another thread, but a new one appeared: sound quality.


In 4869, playing WAVs with the Android 'MediaPlayer' class worked perfectly. Now it is a lot slower ( playing a short sound in rapid succession is at least twice slower which suggests MediaPlayer.start() initialization takes much longer ). Also quality got much worse.

BlackBerry Development Advisor
Posts: 102
Registered: ‎11-21-2008
My Device: Z10
My Carrier: Bell

Re: with, sound quality went straight to hell

Hello again Utamno,


I'm happy to hear that the previous issue regarding the SharedPreferences was resolved.


I've written a small sample application which utilizes the MediaPlayer.start() method and the WAVE file that I passed into the MediaPlayer.create() method (R.raw.track1) is played without issue.


What is the length of your sound clip and how often are you repeating it? 


Note: 8- and 16-bit linear PCM WAVE files are supported within the BlackBerry Runtime for Android apps

James Dreher
BlackBerry Development Advisor