Code example for UsbDeviceConnection

Methods: releaseInterface

0
	 */ 
	public void stop() { 
		if (usbRequest != null) {
			usbRequest.close();
		} 
		deviceConnection.releaseInterface(usbInterface);
	} 
	 
	/** 
	 * Sends MIDI message to output device. 
	 *  
	 * @param codeIndexNumber 
	 * @param cable 
	 * @param byte1 
	 * @param byte2 
	 * @param byte3 
	 */ 
	private void sendMidiMessage(int codeIndexNumber, int cable, int byte1, int byte2, int byte3) {
		byte[] writeBuffer = new byte[4];
 
Stop searching for code, let great code find you!  Add Codota to your java IDE