good tip, lbcoder is correct, if you just want to disable A2DP profile
for a particular device you can do that by long-press in BT settings.

Nick

On Mon, Jun 22, 2009 at 12:38 PM, lbcoder<[email protected]> wrote:
>
> I think I know what you're trying to do...
>
> You have a bluetooth device in your car, but when you are in your car
> you want to plug in the wire for media/audio rather than using a2dp,
> but you still want to use bluetooth for calls... is that correct? That
> being the case, you don't need to write anything... menu -- settings
> -- wireless -- bluetooth settings -- long-click the device for your
> car -- options -- and uncheck "media". After that, it will run calls
> through bluetooth and media through the wire.
>
> On Jun 19, 2:31 pm, keyboardr <[email protected]> wrote:
>> I'm attempting to write an A2DP toggle app (that way when I'm in the
>> car I can route the audio wired through my car stereo without having
>> to completely disable bluetooth for calls, etc.).  Eventually I plan
>> to have it detect when an external audio output is available, but for
>> now I'm fine with a manual toggle.  The problem is this: I can't stop
>> A2DP.  I've used both AudioManager.setBluetoothA2dpOn(boolean on) and
>> AudioManager.setRouting(int mode, int route, int mask).  No matter
>> what AudioManager.isBluetoothA2dpOn() always returns true, and audio
>> is always routed through the headset, not the speakers.
>> AudioManager.getRouting() is returning 18 when the headset is
>> connected (2 for speakers plus 16 for BluetoothA2DP).  Any advice?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to