Like I said, that is what the BluetoothChat example does. Use the same code.
On May 25, 3:13 pm, Jake Maui <jakemau...@gmail.com> wrote: > Don, > I'm using my actual phone using the USB debugging feature. Ultimately I > would like to know when my phone is paired with my bluetooth in my car and > when the connection is dropped. > > Thanks > -Kurt > > On Tue, May 25, 2010 at 10:28 AM, DonFrench <dcfre...@gmail.com> wrote: > > The BluetoothChat program is looking for a service with a specific > > UUID and you need to change it to match the service you are looking > > for. For the Serial Port Profile (SPP), the correct UUID is > > 00000003-0000-1000-8000-00805F9B34FB. However, unless something has > > changed very recently, I do not believe that you can connect to > > anything through the emulator. I think you will have to test your > > code using an actual phone. > > > On May 25, 6:28 am, Jake Maui <jakemau...@gmail.com> wrote: > > > Don, > > > I'm trying to observe when my phone connects/disconnects from my PC > > by > > > running the BluetoothChat in the debugger. I can see in the console that > > my > > > phone is connecting for *AVRCP profile* but the break point doesn't stop > > in > > > the setState method. I don't know enough about bluetooth yet so I don't > > > know if it's because the chat program is only looking for a particular > > > profile or not. > > > > Thanks > > > > On Mon, May 24, 2010 at 4:00 PM, DonFrench <dcfre...@gmail.com> wrote: > > > > Have you looked at the BluetoothChat example? It does what you want. > > > > > On May 23, 10:03 am, Jake Maui <jakemau...@gmail.com> wrote: > > > > > Is there a way to observe a bluetooth pairing and then be aware of > > when > > > > the > > > > > connection no longer exists? Basically I want to observe when my > > phone > > > > > connects to another device and what that connection is dropped to > > that I > > > > may > > > > > execute an action based on that connection. > > > > > > Thanks > > > > > > -- > > > > > 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<android-developers%2bunsubscr...@googlegroups.com> > > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com> > > > > > > For more options, visit this group athttp:// > > > > 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<android-developers%2bunsubscr...@googlegroups.com> > > <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@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<android-developers%2bunsubscr...@googlegroups.com> > > > For more options, visit this group athttp:// > > 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<android-developers%2bunsubscr...@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