• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Trouble coneccting Pc with Android 2.1 mobile for the Bluetooth Chat example

lugopaco

Newbie
Mar 31, 2011
30
0
Mexico
Hi. I'm new on programming Android devices. I'm making an school proyect which envolves an Android (Mini-Xperia pro with Android 2.1) and bluetooth communication with a device. I'm trying to go step by step to undesrstand all of the programming stuff and to learn all I can.
I've got an Bluetooth adapter for the Pc, I'm working with windows XP so I only connect it and it's already installed.
Well, I'm working over the Bluetooth Chat sample that comes with the SDK and I've already changed the UUID to:
private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805f9b34fb");
With my mobile I entered to settings and made my device paired to my Pc (it says paired but with out conection).
But I don't know what I'm doing wrong cause I open the Bluetooth chat application on my mobile, try to connect to my pc and it says "unable to conect device".
After a lot of tries, it connects to transmit from the pc to the phone:
A
AT
And the connection is lost (this takes less than 2 seconds!!)
Can anyone help me please telling me what am I doing wrong or what's the problem??
Thanks
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones