Code example for UsbManager

Methods: getDeviceList

0
		 
		this.ports= new ArrayList<OCSPort>();
		 
		UsbManager usbMgr = (UsbManager) ctx.getSystemService(Context.USB_SERVICE);
		 
		usbMgr.getDeviceList();
		 
		 
		ocslog.append("OCSInputs");
		if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
 
		} else { 
 
	    } 
	} 
 
	public String toXML() {
		StringBuffer strOut = new StringBuffer();
		for ( OCSPort o : ports ) {
			strOut.append(o.toXml());
		}