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: 39
Registered: ‎03-24-2009
My Device: Not Specified
Accepted Solution

Alarm and sound volume setting - Blackberry Storm

hi people,

 

another question, is it possible to raise alarm programmatically with sound volume set to max in blackberry storm? if yes, then could anybody please provide some information on how to do it?

 

Thanks a ton in advance

Highlighted
Developer
Posts: 342
Registered: ‎02-04-2009
My Device: BB 8320

Re: Alarm and sound volume setting - Blackberry Storm

Take a look at the Alert class, http://www.blackberry.com/developers/docs/4.7.0api/index.html

 

You can make use of the following methods:

 

setVolume(int volume) - to set the volume

startAudio(short[] tune, int volume) - to start playing an audio

startVibrate(int duration)  - to start vibrating


Use Search. "Accept Solution" if the problem gets resolved.