Get Vendor ID, Product ID of Android USB Device Programmatically

I want to get Vendor ID and Product ID of a connected USB device through my Android app.

Anyone have any idea how to do this?

+3


source to share


2 answers


USB enumeration

This is an example of a project that you can relate to.

Its implementation includes 2 kinds of USB enumeration.



1] Using Android API .

2] Under cat the link files generated on the set USB path.

+1


source


The UsbDevice class has a method to get the product id and id id. You can refer http://developer.android.com/reference/android/hardware/usb/UsbDevice.html



0


source







All Articles