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
Posts: 17
Registered: ‎08-18-2008
My Device: Not Specified

Stop the default SMS ringtone from playing

Hello All,
I am developing a BlackBerry Application in which I want to track the SMS from a particular number and
want to play a ringtone(different from the one which user might have set in his profile),
here I am playing a Midi file and using MediaManager class to play it. So, I am able to track the SMS
from the desired number and my Midi ringtone is also playing, but in addition to that the default ringtone
which user have set is also playin. I just want to stop the default ringtone from playing. So,
only my ringtone should play when SMS from a particular number arrives.

Thanks and waiting  keen reply...

 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Stop the default SMS ringtone from playing

There are no BlackBerry APIs that allow you to change or mute an alert set in a user's profile.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 22
Registered: ‎08-13-2008
My Device: Not Specified

Re: Stop the default SMS ringtone from playing

Is there a workaround, like switching profiles, or muting the BlackBerry until the original alert finishes, then playing the custom alert (possibly by keystroke injection)?

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Stop the default SMS ringtone from playing

There are no APIs to change a user's profile.  You could try using the Alert.setVolume method to reduce the volume, however there is nothing to stop another application from changing the volume back to its previous level.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
Regular Contributor
Posts: 67
Registered: ‎09-30-2009
My Device: Not Specified

Re: Stop the default SMS ringtone from playing

How is Silent Time application working in this case?

http://appworld.blackberry.com/webstore/content/5600