// open the accessory here private boolean openMyAccessory() { boolean accOpened = false; if (DEBUG_VERBOSE) Log.d(TAG, "openMyAccessory entered!"); // Next, ask the UsbManager (singleton?) for the ParcelFileDescriptor for the accessory myParcelFD = androidUsbManager.openAccessory(adkAccessory); if (myParcelFD != null) { accOpened = true; if (DEBUG_VERBOSE) Log.d("myADK_OpenMyAccessory", "accessory opened. " + myParcelFD.toString()); } else { Log.e("myADK_OpenMyAccessory", "opening failed :("); } if (DEBUG_VERBOSE) Log.d(TAG, "openMyAccessory exited!"); return accOpened; }