I am working on an Android application that has to detect whether a USB converter (for example a USB-C to USB micro male to female converter) is connected to the device being used. From this link I thought this might be possible for USB micro and USB-C, since both have an ID pin for "Mode Detect".
I already checked this post on StackOverflow, which works for detecting whether the device is connected to a PC, but doesn't work for detecting a USB connection from (for example) a converter that is plugged in.
So what I would like to know is the following:
- Is it possible to detect whether a USB converter has been plugged into the device?
- If so, how could one detect this programatically?
Any help would be greatly appreciated.