I thought it would be quite easy to develop a bluetooth application on Android, but it looks like the support is very bad.
While pairing works, my Nexus One with Android 2.1 can’t connect to the PC. It’s the same in Windows and Ubuntu. I used on my Desktop computer, in Windows, Hyperterminal and waited on an incoming bluetooth com-port.
Does anybody know a solution for this? I searched already a bit… Maybe this
http://code.google.com/p/backport-android-bluetooth/
or this library
http://code.google.com/p/bluecove/
…could be a solution, but I don’t know it yet. Maybe someone else has it running on Android 2.1 already?
Thanks for some hints 🙂
Well, the answer is quite unspectacular – an error in the blueooth example of Android. Probably intended to chat with another Android device only it’s not possible to talk to Hyperterminal.
Just changing the UUID solves the problem … naming it UUID in this case, is wrong in my opinion – it should be named GroupID or whatever as it specifies here the type of service/protocol (RFCOMM).
private static final UUID MY_UUID = UUID.fromString(“00001101-0000-1000-8000-00805F9B34FB”);