7

The method getAccessory(Intent) is undefined for the type UsbManager

view full story
linux-howto

http://stackoverflow.com – I am working on a project about android and I am trying to set a connection between device and ADK my problem is .getAccessory(); method. It should be taken from UsbManager class, but eclipse throws following error The method getAccessory(Intent) is undefined for the type UsbManager and my code sample is here: private final BroadcastReceiver mUsbReceiver = new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub String action = intent.getAction(); if(ACTION_USB_PERMISSION.equals(action)){ (HowTos)