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
Highlighted
New Developer
Posts: 2
Registered: ‎03-19-2009
My Device: Not Specified

Programmatically putting the phone in vibration mode

Hi,

I'm a newbie in Blackberry application development. I'm developing a blackberry application using RIM api's. Now I want to put the phone In Vibration Mode when user selects a particular option. Is there any way to achieve this? Also is there any way I can also pur the ringer in mute mode?

Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: Programmatically putting the phone in vibration mode

You can inject an event using eventinjector for volume_down key that will mute the call and use setRingTone() method of NotificationManager class.

 

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

 

 

 

Deepesh Gupta
Developer
Posts: 85
Registered: ‎12-05-2008
My Device: Blackberry 8900 Javelin

Re: Programmatically putting the phone in vibration mode

Alert.startVibrate(int duration)