The more observant of you will have noticed the presence of a non-functional MtpDevice in the USB library. This library contains an MtpDevice2 object that IS functional. It requires Android 3.1 or later, a device with host mode capable hardware and an OTG cable to connect the MTP device to the Android device.
It allows you to examine the contents of a connected MTP capable device and read data from it. Deleting of objects on the MTP device is possible but adding or modifying them is not possible as the Android MtpDevice API does not possess this capability.
As long as this library works OK the this library will be incorporated into a future issue of the USB library replacing the existing MtpDevice object.
It allows you to examine the contents of a connected MTP capable device and read data from it. Deleting of objects on the MTP device is possible but adding or modifying them is not possible as the Android MtpDevice API does not possess this capability.
As long as this library works OK the this library will be incorporated into a future issue of the USB library replacing the existing MtpDevice object.