3

I'm trying to connect two Android devices with API 15+ via USB OTG cable.

Right now, I have one side "USB Host" based on this tutorial: http://developer.android.com/guide/topics/connectivity/usb/host.html

Now I'm trying to connect to host from second Android Device. I tried with this tutorial: http://developer.android.com/guide/topics/connectivity/usb/accessory.html

But unfortunately, although I have accessory_filter like this:

<?xml version="1.0" encoding="utf-8"?>

<resources>
    <usb-accessory />
</resources>

both:

mUsbManager.getDeviceList();
mUsbManager.getAccessoryList();

return nulls on "not-host" endpoint of communication. Battery is loading, popup with "USB computer connection" is shown.

Does anybody know how to handle this?

ligi
  • 39,001
  • 44
  • 144
  • 244
Marian Przyszedł
  • 699
  • 1
  • 9
  • 19

0 Answers0