android.hardware.usb.UsbManager

Get Started. It's Free
or sign up with your email address
Rocket clouds
android.hardware.usb.UsbManager by Mind Map: android.hardware.usb.UsbManager

1. Public Methods

1.1. getAccessoryList()

1.1.1. returns UsbAccesory []

1.2. getDeviceList()

1.2.1. returns HashMap<String, UsbDevice>

1.3. hasPermission(UsbDevice device)

1.3.1. returns boolean

1.4. hasPermission(UsbAccessory accessory)

1.4.1. returns boolean

1.5. openAccessory(UsbAccessory accessory)

1.5.1. returns ParcelFileDescriptor

1.6. openDevice(UsbDevice device)

1.6.1. returns UsbDeviceConnection

1.7. requestPermission(UsbDevice device, PendingIntent pi)

1.7.1. returns void

1.8. requestPermission(UsbAccessory accessory, PendingIntent pi)

1.8.1. returns void

2. Constants

2.1. ACTION_USB_ACCESSORY_ATTACHED

2.2. ACTION_USB_ACCESSORY_DETACHED

2.3. ACTION_USB_DEVICE_ATTACHED

2.4. ACTION_USB_DEVICE_DETACHED

2.5. EXTRA_ACCESSORY

2.6. EXTRA_DEVICE

2.7. EXTRA_PERMISSION_GRANTED

3. android.hardware.usb

3.1. class UsbManager

3.2. class UsbDevice

3.3. class UsbInterface

3.4. class UsbEndpoint

3.5. class UsbDeviceConnection

3.6. class UsbRequest

3.7. class UsbConstants

4. Manifest Requirements for USB use

4.1. Manifest and resource file examples

5. Working with USB Devices

5.1. Discovery

5.1.1. Using an intent filter

5.1.2. Enumerating Devices

5.2. Obtaining Permission to Communicate

5.3. Communicating

5.4. Terminating