What IDE do you use to build this app? I'm new to Android and so far I've just used Eclipse. In your source code I didn't see gen folder with R class.
I also met problem when connecting two devices (two Android phones). after paring, I pressed "connect" button then I received a message "Connection refused. The remote device is busy or the devices aren't correctly paired".
Is there a phase to enter the key used to pair two devices? If yes, I didn't see that phase.