/**
* API to set the device information.
*
+ * @deprecated Use setDeviceInfo2 instead.
+ *
* @param deviceInfo
* Device information.
*
}
/**
+ * API to set the device information.
+ *
+ * @param deviceInfo
+ * Device information.
+ * @param protocolIndependentID
+ * Protocol-independent UUID of the device.
+ *
+ * @throws InvalidArgsException
+ * Thrown if the input parameter is empty.
+ * @throws SimulatorException
+ * Thrown for other errors.
+ */
+ public static void setDeviceInfo2(String deviceInfo, String protocolIndependentID)
+ throws InvalidArgsException, SimulatorException {
+ nativeSetDeviceInfo2(deviceInfo, protocolIndependentID);
+ }
+
+ /**
* API to search for devices on the given host in the network.
*
* @param hostUri
FindResourceListener listener);
private static native void nativeSetDeviceInfo(String deviceInfo);
+ private static native void nativeSetDeviceInfo2(String deviceInfo,
+ String protocolIndependentID);
private static native void nativeFindDevices(String hostUri,
DeviceListener listener);