- name
- service name for SDP record
- uuid
- uuid for SDP record
Documentation for this section has not yet been entered.
Type Reason Java.IO.IOException on error, for example Bluetooth not available, or insufficient permissions, or channel in use.
Create a listening, secure RFCOMM Bluetooth socket with Service Record.
A remote device connecting to this socket will be authenticated and communication on this socket will be encrypted.
Use BluetoothServerSocket.Accept to retrieve incoming connections from a listening Android.Bluetooth.BluetoothServerSocket.
The system will assign an unused RFCOMM channel to listen on.
The system will also register a Service Discovery Protocol (SDP) record with the local SDP server containing the specified UUID, service name, and auto-assigned channel. Remote Bluetooth devices can use the same UUID to query our SDP server and discover which channel to connect to. This SDP record will be removed when this socket is closed, or if this application closes unexpectedly.
Use BluetoothDevice.CreateRfcommSocketToServiceRecord(Java.Util.UUID) to connect to this socket from another device using the same Java.Util.UUID.