Sunday, January 10, 2010

Re: [android-developers] android.bluetooth.a2dp.intent.action.SINK_STATE_CHANGED

On Mon, Jan 11, 2010 at 7:40 AM, Alex Corbi <a.corbi@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 of http://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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate