uuid
in the ServiceClassIDList of its service record. This method will return a string that may be used in Connector.open()
to establish a connection to the service. How the service is selected if there are multiple services with uuid
and which devices to search is implementation dependent.
@see ServiceRecord#NOAUTHENTICATE_NOENCRYPT
@see ServiceRecord#AUTHENTICATE_NOENCRYPT
@see ServiceRecord#AUTHENTICATE_ENCRYPT
@param uuid the UUID to search for in the ServiceClassIDList
@param security specifies the security requirements for a connection to this service; must be one ofServiceRecord.NOAUTHENTICATE_NOENCRYPT
, ServiceRecord.AUTHENTICATE_NOENCRYPT
, or ServiceRecord.AUTHENTICATE_ENCRYPT
@param master determines if this client must be the master of theconnection; true
if the client must be the master; false
if the client can be the master or the slave
@return the connection string used to connect to the servicewith a UUID of uuid
; or null
if no service could be found with a UUID of uuid
in the ServiceClassIDList
@exception BluetoothStateException if the Bluetooth system cannotstart the request due to the current state of the Bluetooth system
@exception NullPointerException if uuid
is null
@exception IllegalArgumentException if security
isnot ServiceRecord.NOAUTHENTICATE_NOENCRYPT
, ServiceRecord.AUTHENTICATE_NOENCRYPT
, or ServiceRecord.AUTHENTICATE_ENCRYPT
Christian Lorenz: This method is not implemented. Use searchServices instead.
|
|