Hi Nick,

Thanks for your answer.

What i am trying to do is to detect when a bluetooth headset device
connect to the phone so my app can react to this event.

is there an alternative?

Alex

On Jan 11, 6:17 am, Nick Pelly <npe...@google.com> wrote:
> On Mon, Jan 11, 2010 at 7:40 AM, Alex Corbi <a.co...@gmail.com> wrote:
> > HI everybody,
>
> > im currently looking for the way that my app knows when the phone has
> > being paired and connected to a bluetooth headset device.
>
> > I read something about this intent, but not on the Reference
> > documentation ofhttp://developer.android.com
>
> > android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED
>
> > is this actually working, is it officially supported.
>
> > I mean, can we just register a broadcastreceiver to handle this
> > intent , check for the EXTRA_STATE string extra to see if it equals
> > STATE_CONNECTED and be sure that the phone is now connected with a
> > bluetooth headset device ???
>
> > What about this BluetoothA2dpService class?? There is no official
> > documentation about this, everything i found i from code snippets of
> > the android OS source code.
>
> > What do you guys think about this?
>
> It's not part of the official Android API. So it is very dangerous to
> use, since it can (and probably will) break in a future OTA. It might
> not work at all on some Android devices, since Android devices are
> only required to implement the official API.
>
> There is currently no way to determine if a Bluetooth device is
> connected to the built-in Bluetooth headset service through the
> official API.
>
> If you can explain what you are trying to do, I might be able to
> suggest a better alternative?
>
> Nick
-- 
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

Reply via email to