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
Highlighted
Developer
Posts: 124
Registered: ‎07-11-2011
My Device: 8900
My Carrier: Airtel

Device Based Loud Alarm on Button Click from Blackberry OS 5.0 and onwards

Hi All,

 

Moment user click on my button, device based loud alarm should be played(some high pitch sound files pre -  stored in device memory)

Is it feasible.Can anyoone please provide the sample code for same.

 

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

Re: Device Based Loud Alarm on Button Click from Blackberry OS 5.0 and onwards

check the mediaplayer api about how to play a media file.
----------------------------------------------------------
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
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: Device Based Loud Alarm on Button Click from Blackberry OS 5.0 and onwards

Hi,

 

Have you checked this -

 

http://docs.blackberry.com/en/developers/deliverables/17968/CS_Playing_audio_in_a_BB_device_app_1222...

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro