I would like to read-write a file in USB drive OTG programatically.
Use case is following:
- User connects an USB OTG to Nexus 10 device.
- My App will get notified that USB is connected. (achieved)
- My App will read some files from the USB drive
- My App will make some changes on the files.
- My App will write the files back to USB drive.
I am writing the android app for Lollipop devices. Any help is appreciated. Thank you.