I'm creating an application which to be play on my android device. After several weeks searching and continue to develop the application logic, I still unable to find a way to access USB device.
I'm develop using React-Native CLI and device is running on Nougat 7.1.2.
Application will be run on a device as below:-
At application startup, it will check the target selected either local folder or removable drive. If user select removable drive, it should be find any existing removable drive and get all files inside it that having images and video to be play (like screen saver/ slideshow) on main screen.
I've come across USB OTG Storage library, but I'm not understand how to access the USB storage content as the console show any difference log between USB Drive and USB Dongle for Mouse.
If I'm unmounted and mounted both at several times, both device log will trigger same 'USB DISK 2.0'
Is there any other library/packages that able to search for removable drive storage and access it's files?