English 中文(简体)
BlackBerry - How to detect the bluetooth headset connection event?
原标题:

I have a bluetooth headset that I paired with my blackberry storm. Whenever I turn on/off the headset, my storm displays the message that the headset is been connected or disconnected and updates the bluetooth indicator icon. I would like to detect that headset connect change event in my application. How do i capture that event change? I know that "Audiolistener" can capture the headset connect event. but I don t know whether it will do for bluetooth headset.

thanks.

问题回答

BlackBerry Support Community Forums:BlackBerry Development:Java Development:AudioListener:

There is no listener that provides notifications for when a user connects or disconnects a headset.
Mark Sohm
BlackBerry Development Advisor
www.BlackBerryDeveloper.com





相关问题
Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

Play sound in iPhone web app with Javascript?

I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...

热门标签