Java Android从存储棒获取文件通过USB主机连接

时间:2019-02-07 07:21:38

标签: android

我想从连接的USB存储器中获取文件,并且我有此信息:

device = deviceIterator.next();
        manager.requestPermission(device, mPermissionIntent);
        i += "\n" + "DeviceID: " + device.getDeviceId() + "\n"
                + "DeviceName: " + device.getDeviceName() + "\n"
                + "DeviceClass: " + device.getDeviceClass() + " - "
                + "DeviceSubClass: " + device.getDeviceSubclass() + "\n"
                + "VendorID: " + device.getVendorId() + "\n"
                + "ProductID: " + device.getProductId() + "\n";

但是我如何从该USB中获取文件?

0 个答案:

没有答案