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

Posts: 20
Registered: ‎11-17-2008
My Device: Not Specified

Alert.startAudio vs Manager.playTone

I want to play a beep whenever user presses trackpad. I tried Alert.startAudio and Manager.playTone, but not satisfied with both of them.


Alert.startAudio is very quiet. Development advisors recommend not to use Alert class.



protected boolean navigationClick(int status, int time) {
    Alert.startAudio(new short[] { 500, 25 }, 100);


I tried to look on other solutions and found Manager.playTone. This method produces a beep with the desired volume, albeit it has performance problems. If a user presses trackpad very fast, some beeps are not played and there is a some delay between click and the beep.


I need to play a beep on every trackpad click and without any noticeable delays.


Please advice on how I should implement such functionality.