I\'m trying to create a basic bluetooth application, for testing the device.
I got the code from developer.android. Here is the link : http://developer.android.com/
You'll have to provide a valid UUID for the service discovery.
BluetoothSocket sock = bdevice.createRfcommSocketToServiceRecord(VALID_UUID);
There are several common UUIDs for various standard (default) bluetooth services (Handsfree, File transfer, etc).
See here