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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 16
Registered: ‎10-31-2011
My Device: 9800
My Carrier: Software Developer

Popup with sound

Is there any possibility in blackberry to occur some sound when an popup appears??

Please feel free to press like button, if u satisfy with solution.

AnkitRockks
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Popup with sound

welcome to the support forums.

there is no option to enable that as a default behavior. if you display a popup yourself you can play a sound as well, of course.
----------------------------------------------------------
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
Contributor
Posts: 16
Registered: ‎10-31-2011
My Device: 9800
My Carrier: Software Developer

Re: Popup with sound

Ok, then tell me the way to solve this problem..

Please feel free to press like button, if u satisfy with solution.

AnkitRockks
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Popup with sound

specify your problem a bit, do you talk about your own popups or also ones of other apps?
----------------------------------------------------------
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
Contributor
Posts: 16
Registered: ‎10-31-2011
My Device: 9800
My Carrier: Software Developer

Re: Popup with sound

Suppose i'm clicking on a button and a OK_CANCEL popup is occuring, with this popup i want an alert sound..

Please feel free to press like button, if u satisfy with solution.

AnkitRockks
Highlighted
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Popup with sound

you have to do it yourself. you can use http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/system/Alert.html or a player to play a sound.
----------------------------------------------------------
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
Contributor
Posts: 16
Registered: ‎10-31-2011
My Device: 9800
My Carrier: Software Developer

Re: Popup with sound

I tried but it was not successful so give me some sample code or some other stuff which will be helpful to solve this problem..

Please feel free to press like button, if u satisfy with solution.

AnkitRockks
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Popup with sound

we can do it the other way around, you can post your code and we can help you with it.
----------------------------------------------------------
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
Contributor
Posts: 16
Registered: ‎10-31-2011
My Device: 9800
My Carrier: Software Developer

Re: Popup with sound

I want any new idea for this..

Ok, I am explaining the problem..


After clicking on button, a Dialog.alert is showing, now with this alert I want a sound.. 

Please feel free to press like button, if u satisfy with solution.

AnkitRockks
Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: Popup with sound

Before showing the dialog you can write like this
try{
Alert.startAudio(tune, volume);
}
catch(Exception e)
{}

Now show the Dialog here..

Thanks.