(UsbDevice device)
| 378 | } |
| 379 | |
| 380 | private void requestPermission(UsbDevice device) { |
| 381 | PendingIntent pi = |
| 382 | PendingIntent.getBroadcast(context, 0, |
| 383 | new Intent(UsbSerialHelper.ACTION_USB_PERMISSION), |
| 384 | 0); |
| 385 | |
| 386 | usbmanager.requestPermission(device, pi); |
| 387 | } |
| 388 | |
| 389 | private synchronized AndroidPort connect(String id, int baud) |
| 390 | throws IOException |