08-22-2008 02:51 AM
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...
08-22-2008 09:08 AM
08-22-2008 12:14 PM
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)?
08-25-2008 09:37 AM
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.