Android6.0 BETA3 - internal OTG problem after restart

Discussion in 'General Discussion' started by david sedlacek, Jul 19, 2016.

  1. david sedlacek

    david sedlacek New Member

    Joined:
    Jul 19, 2016
    Messages:
    1
    Likes Received:
    1
    Hi all,
    Iam not sure where to post this, because it is some kind of issue related to your current development.
    So forgive me, if you know about it, or if it should be placed somewhere else.

    The option in Settings -> General -> Enable internal Arduino communication is checked after restart (yes, I checked it before reboot), but the Accessory is not available.
    After uncheck and check again, the accessory can be listed.
    This is related to Android6.0 BETA3.

    code snippet for accessory listing:
    mUsbManager = (UsbManager) getSystemService(Context.USB_SERVICE);
    if (mUsbManager.getAccessoryList() != null) {
    out += "accessory count: " + mUsbManager.getAccessoryList().length + "\n\n";
    for (UsbAccessory usbA : mUsbManager.getAccessoryList()) {
    out += usbA.toString() + "\n\n";
    }
    } else {
    out += "no accessory";
    }

    thank you for all the work :)
    david
     
    Andrea Rovai likes this.
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Thank you very much for pointing this out, we were unaware of the problem and we're trying to solve it.
     

Share This Page