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
New Developer
chaimkut
Posts: 16
Registered: ‎07-30-2008
My Device: Not Specified

Quiet, change, modify native ringtone?

Hi

Is there any way to interact with the native ringtone/ring to either quiet it or modify it via Java? Thanks.

Developer
javec
Posts: 445
Registered: ‎07-15-2008
My Device: Not Specified

Re: Quiet, change, modify native ringtone?

No, the current set of APIs does not support this. Unfortunately.
If your question was answered, please accept it as a sollution and / or give Kudos ;-)
______________________________
Use the Search Field first! Maybe the question you want to ask already exists!
Developer
Strato
Posts: 18
Registered: ‎02-06-2009
My Device: BlackBerry Z10

Re: Quiet, change, modify native ringtone?

Hi,

 

you can set a ringtone with setPhoneRingTone(String) in  class net.rim.device.api.notification.NotificationsManager

 

you can get the "master volume level" with getMasterNotificationVolume

 

you can set the volume with setVolume  from net.rim.device.api.system.Audio net.rim.device.api.system.Alert (I've not currently tester setVolume, but according to the API, it is supposed to set the master volume level

 

Best regards,

Strato