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

Regular Contributor
Posts: 59
Registered: ‎01-17-2011
My Device: 8520
My Carrier: Vodafone

How to get notification when user change ringer mode?

[ Edited ]



I want to get notification in my app , When user change ringtone mode. for ex. ring to Vibrate, or ring to vibrate + ring to vibrate to silent. etc.


My requerment is :-

App running in background. and as user change device ringing option. then my app get notification that ringing option has been chached.


I Search lot but i didn't got any help..


Please help !




Posts: 16,897
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get notification when user change ringer mode?

i don't think there is a listener api for that, but i think it should be possible with a bit of a workaround.
the important class is http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/profiles/NotificationRule....
you can check for vibrateonly directly there, and you can register your own consequence object: http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/notification/Consequence.html

this is all stuff i read about here on the forums, i have never tried it myself, so you will have to test a bit.
you can look at the notificationsdemo and search the forums for the keywords i have you.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter