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 <[email protected]> wrote: > On Mon, Jan 11, 2010 at 5:27 PM,AlexCorbi<[email protected]> 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 <[email protected]> wrote: > >> On Mon, Jan 11, 2010 at 7:40 AM,AlexCorbi<[email protected]> 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 [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-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 [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-developers?hl=en

