Questions tagged [usbmanager]
9 questions
4
votes
1 answer
UsbDevice requestPermission is denied without showing the request dialog prompt
I'm trying to use usb camera devices connected to my android device. So initially i have got the details of the usb devices connected through UsbManager.getDeviceList() method. Then i iterated through every device and requested for permission if…

manish reddy
- 157
- 1
- 11
1
vote
2 answers
Android Emulator (Android Studio AVD) Serial Port Connection - Empty Device List
I'm trying to use the emulator that comes with Android Studio to open a serial port to talk to an Arduino board on COM5; however, I am having trouble even seeing a device list. I am using the package by felHR85 GitHub link for the USB serial…

Liam G
- 771
- 2
- 9
- 26
0
votes
0 answers
Android procedurally change Gadget Mode
Is there a way of selecting the gadget mode from an android app, specifically for when connecting to hosts? I.e. Can I request the host OS goes into RNDIS mode? Or UsbManager.USB_FUNCTION_MIDI?
I can't seem to find any way in documentation for…

Charles Lohr
- 695
- 1
- 8
- 23
0
votes
0 answers
¿How can i receive Status from a thermal printer with Android managerUsb?
The printer uses USB connection and ESC/POS commands, I can send commands with BulkTransfer:
val usbManager = context.getSystemService(Context.USB_SERVICE) as UsbManager
val device: UsbDevice? =
…

Dani Puente
- 23
- 3
0
votes
0 answers
usbManager is behaving abnormally for targeting S+ (android api level 31 and above)
I am working on an app which connect Nikon D3200 camera using usbManager. After connection establishment phone can see liveView on phone and can capture a photo using phone. This app works fine with targetSdkVersion 28 and compileSdkVersion 28, but…

Mdohammad Sajib Al Seraj
- 71
- 1
- 7
0
votes
1 answer
Why does Android not see a connected computer as either a USB Device or USB Accessory
I'm trying to gain a deeper understanding of the Android USB APIs. I have played with the USB Host APIs and have successfully connected various devices (USB stick, USB hub with other devices attached) to my Android phone (Phone as host). I…

Yirmi
- 332
- 2
- 13
0
votes
0 answers
Could not connect to device: NullPointerException connecting from android to Zebra printer via USB?
am trying to connect to a Zebra Printer, model ZDesigner GK420t, from an Android Application via USB using the new UsbConnection(), where the parameters assigned to USBConnection() constructor are as follows:
UsbManager manager =…

Yazan
- 179
- 2
- 4
- 10
0
votes
1 answer
How to get list of usb devices connected from a service
I am writing a service which would send some proprietary commands to a specific USB device connected to Android based box.
Earlier I had implemented an app (with Activity) so it was pretty straightforward:
UsbManager manager = (UsbManager)…

Sabin
- 61
- 3
0
votes
1 answer
Get UUID of a USB Mass Storage Device connected to an Android device
I have been going though the Android documentation searching for a way to identify a USB device (mass storage device or other) by its UUID, but I don't find one.
I looked at:
UsbDevice Docs
UsbManager Docs
USB Dev guide
Non of these provide a…

CybeX
- 2,060
- 3
- 48
- 115