Could someone tell me if i can use my android device as a slave while using Bluetooth. I want another device (for example: PC) to act as a Master. I want the PC to connect to the Android device via Bluetooth and then receive messages from the Android device say on the hyper terminal of the PC.
BR,
Suppi
You need to create a RFCOMM connection where your Android device will listen to incomming connections. Here is some sample code of my own. BluetoothServiceEndpoint and BluetoothDeviceConnection are abstraction interfaces, but in your case you do not need them (just use Android API objects). This chunk of code will use an unauthenticated RFCOMM socket (without pairing) if available (only from Gingerbread, but it works in previous versions since I use reflection).
You would call bind() and then accept() to accept connections.