I have sony tablet S and I am connecting a pendrive to it.
I have found code that lets me:
-Find the connected device
-Find its interfaces
-Find its endpoints (read, write)
-I am able to open the device too
My question is: How do I list all files and directories in the pendrive?
From what I have read there are methods like
mDeviceConnection.controlTransfer(...)
that allow to read and write to the pendrive but how do I list the files and directories in the pendrive?
I want to be able to get absolute paths to files contained in the pendrive so I can transfer them to the sd card on the tablet.
Thanks