Is there anybody know the answer? I just saw the API setBluetoothA2dpOn(boolean on) in AudioManager is deprecated.
I need provide a choice in my application for the user to select audio route to Bluetooth headset or speaker. I can use the API setBluetoothA2dpOn() to route audio to bluetooth headset, if the A2DP is paired and connected. But if it is not connected, the audio is off. My questions are: 1. Is there an API for the application to control audio routing to Bluetooth headset? 2. How to detect if an A2DP headset is connected? Thanks a lot. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---