views:

465

answers:

1

I write my little MP3 player app. I want to allow the user to chose audio output (speaker/headphone or bluetooth headset). How can I turn on/off the bluetooth capabilities of a Windows Mobile phone programatically? Once the connection with the BT headset is made, how can I get notified when the connection is broken/closed/lost?

(Once BT is on, this is the way to redirect audio stream to the BT headset)

+1  A: 

You could pinvoke the GetWirelessDevices and ChangeRadioState functions as described in this article.

tomlog