android.hardware.usb
Class UsbManager

java.lang.Object  extended by android.hardware.usb.UsbManager

public class UsbManager
extends Object


Field Summary
static StringACTION_USB_ACCESSORY_ATTACHED
           
static StringACTION_USB_ACCESSORY_DETACHED
           
static StringACTION_USB_DEVICE_ATTACHED
           
static StringACTION_USB_DEVICE_DETACHED
           
static StringEXTRA_ACCESSORY
           
static StringEXTRA_DEVICE
           
static StringEXTRA_PERMISSION_GRANTED
           
 
Method Summary
 UsbAccessory[]getAccessoryList()
           
 HashMap<String,UsbDevice>getDeviceList()
           
 booleanhasPermission(UsbAccessory accessory)
           
 booleanhasPermission(UsbDevice device)
           
 ParcelFileDescriptoropenAccessory(UsbAccessory accessory)
           
 UsbDeviceConnectionopenDevice(UsbDevice device)
           
 voidrequestPermission(UsbAccessory accessory, PendingIntent pi)
           
 voidrequestPermission(UsbDevice device, PendingIntent pi)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_USB_DEVICE_ATTACHED

public static final String ACTION_USB_DEVICE_ATTACHED
See Also:
Constant Field Values

ACTION_USB_DEVICE_DETACHED

public static final String ACTION_USB_DEVICE_DETACHED
See Also:
Constant Field Values

ACTION_USB_ACCESSORY_ATTACHED

public static final String ACTION_USB_ACCESSORY_ATTACHED
See Also:
Constant Field Values

ACTION_USB_ACCESSORY_DETACHED

public static final String ACTION_USB_ACCESSORY_DETACHED
See Also:
Constant Field Values

EXTRA_DEVICE

public static final String EXTRA_DEVICE
See Also:
Constant Field Values

EXTRA_ACCESSORY

public static final String EXTRA_ACCESSORY
See Also:
Constant Field Values

EXTRA_PERMISSION_GRANTED

public static final String EXTRA_PERMISSION_GRANTED
See Also:
Constant Field Values
Method Detail

getDeviceList

public HashMap<String,UsbDevice> getDeviceList()

openDevice

public UsbDeviceConnection openDevice(UsbDevice device)

getAccessoryList

public UsbAccessory[] getAccessoryList()

openAccessory

public ParcelFileDescriptor openAccessory(UsbAccessory accessory)

hasPermission

public boolean hasPermission(UsbDevice device)

hasPermission

public boolean hasPermission(UsbAccessory accessory)

requestPermission

public void requestPermission(UsbDevice device,                              PendingIntent pi)

requestPermission

public void requestPermission(UsbAccessory accessory,                              PendingIntent pi)


Copyright © 2008-2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14