I connect two USB devices to my Android 3.1 tabled and I try to iterate over all of them and request the permission for each:
UsbManager mManager = (UsbManager) context.getSystemService(Context.USB_SERVICE);
...
for (UsbDevice device : mManager.getDeviceList().values()) {
mManager.requestPermission(device, mPermissionIntent);
...
}
The issue is that only one permission screen appears instead of two and I suspect requestPermission causing this. Are there any workarounds in Android for that?