You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I developed a program using this library.
HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();
Log.d("usbDevices_log", usbDevices.toString());
where usbManager.getDeviceList(); When I output the value as log, it came out empty.
Is there no solution? For reference, the current version is 5.1.1 Lollipop.
The text was updated successfully, but these errors were encountered:
The UsbManager.getDeviceList() method is a standard USB-Host method in Android. So it's not the felHR85-UsbSerial library's fault.
Returns a HashMap containing all USB devices currently attached. USB device name is the key for the returned HashMap. The result will be empty if no devices are attached, or if USB host mode is inactive or unsupported.
Requires the PackageManager#FEATURE_USB_HOST feature which can be detected using PackageManager.hasSystemFeature(String).
Did you use an Android emulator that Android Studio provided to run your app? In that case, It is not supported.
I developed a program using this library.
HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();
Log.d("usbDevices_log", usbDevices.toString());
where usbManager.getDeviceList(); When I output the value as log, it came out empty.
Is there no solution? For reference, the current version is 5.1.1 Lollipop.
The text was updated successfully, but these errors were encountered: