I want to read the json file in a pendrive the moment the pendrive is inserted, So, the app should automatically look for the file with a specific name, may be on a specific directory, and display the json content in a textview. No intervention from the user except inserting the pendrive. How do I approach this?
Looked at the documentation, but It only tells how to discover the USB. Then it says obtain an interface, and then establish a connection, and then do whatever I have to do. I did coded along the documentation untill obtaining the interface, now I don't know whether I got the interface or not, like how do I even go further.
Never worked with USB as an devleoper in my 27 years of life.
I have only used USBs as a user, so please be kind and guide me.