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 <[email protected]> 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 <[email protected]> wrote:
> > Have you looked at the BluetoothChat example?  It does what you want.
>
> > On May 23, 10:03 am, Jake Maui <[email protected]> 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 [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%[email protected]>
> > > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-developers%[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 
> 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 [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

Reply via email to