Android Open Source - usbseriallib Usb Device Id

From Project

Back to project page usbseriallib.


The source code is released under:

GNU General Public License

If you think the Android project usbseriallib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ecgtheow.UsbSerialLib;
/* ww  w .  ja v a 2s  .  com*/
public class UsbDeviceId {
  private int vendor_id;
  private int product_id;
  public UsbDeviceId(int vendor_id, int product_id) {
    this.vendor_id = vendor_id;
    this.product_id = product_id;
  public int getVendorId() {
    return vendor_id;
  public int getProductId() {
    return product_id;

Java Source Code List