Reputation: 61
I want to set ringtone programmatically in Blackberry through my app, but I am not finding any sample code.
I tried this, but it's not working:
net.rim.device.api.notification.NotificationsManager.setPhoneRingTone("a1.mp3");
How can I do this?
Upvotes: 1
Views: 306
Reputation: 3628
You cannot directly access and play the RIM tones - they are content-protected. What you can do is set up your own alert profile that is added to the BB Profiles. This profile can access the on-board ringtones. You fire this profile using NotificationManager.
See the NotificationsDemo that ships wiht the JDE.
Source: http://supportforums.blackberry.com/t5/Java-Development/Ring-Tones/m-p/343755#M63152
Upvotes: 1