-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getDeviceList empty #349
Comments
hey, did your problem solved? |
The UsbManager.getDeviceList() method is a standard USB-Host method in Android. So it's not the felHR85-UsbSerial library's fault.
Did you use an Android emulator that Android Studio provided to run your app? In that case, It is not supported. https://developer.android.com/studio/run/advanced-emulator-usage#limitations Some non-standard Android devices require OTG support to be enabled (in their setting) before using any USB serial adapter. If you don't attach any USB serial adapter, the UsbManager.getDeviceList() method will return an empty list. Other than that, try to check USB Host support for your hardware device with this app from Google Play Store: https://play.google.com/store/apps/details?id=eu.chainfire.usbhostdiagnostics |
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: