yes, i tried that and got the event whenever the bt headset state was
changed.


On 2월22일, 오후7시42분, Alex Corbi <a.co...@gmail.com> wrote:
> btw, have you tried it already? works?
>
> On 17 Feb., 09:16, Dongjoon Lee <sky...@gmail.com> wrote:
>
>
>
> > Hi.
>
> > If the bluetooth headset is connected, system send this intent.
> > "android.bluetooth.intent.action.HEADSET_STATE_CHANGED"
>
> > So you can receive that and get extra information.
> > For extracting extra information, use this intent.
> > "android.bluetooth.intent.HEADSET_STATE"
> > Through this you can get bluetooth headset connection state.
> > disconnected, connecting, connected.
>
> > I'm not sure my answer satisfies your question.
>
> > On 1월15일, 오전5시19분,AlexCorbi<a.co...@gmail.com> wrote:
>
> > > Hi Nick,
>
> > > Can you tell me please which devices use ACL Connections, do common
> > > bluetooth handsfree devices (like the ones present in cars ) use this
> > > transfer protocol?
>
> > > I am researching this to implement a new functionality on my app Voice
> > > Alerts (+info ->http://49ers.es/corbi/voice-alerts) so the app
> > > activates automatically when the phone gets connected with a bluetooth
> > > headset or car system.
>
> > > i appreciate the help,
>
> > > Best regards..
>
> > >Alex.
>
> > > On Jan 12, 5:01 am, Nick Pelly <npe...@google.com> wrote:
>
> > > > On Mon, Jan 11, 2010 at 5:27 PM,AlexCorbi<a.co...@gmail.com> wrote:
> > > > > 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?
>
> > > > For the requirement you stated there is no public API option. But
> > > > maybe you can explain what your app wants to do when a BT headset
> > > > connects, and I might know a better option. For example ACL_CONNECTED
> > > > will tell you when a low level ACL connection is established and is
> > > > part of the public API.
>
> > > > >Alex
>
> > > > > On Jan 11, 6:17 am, Nick Pelly <npe...@google.com> wrote:
> > > > >> On Mon, Jan 11, 2010 at 7:40 AM,AlexCorbi<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

-- 
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