-3

File observer is working fine with external SD Card ,internal storage , but it doesn't work with usb drive (/storage/usbotg)

Rajesh Sharma
  • 99
  • 2
  • 10
  • Share some code. What did you try? Why is it not working? It is impossible for anyone to help you with this information – 0xDEADC0DE Apr 18 '16 at 06:06

1 Answers1

0

AFAIK If it is mounted via USB storage then in android it will not work. FileObserver event wont work when the storage is mounted.

However you can check on Android 3.0+.It uses Media Transfer Protocol (MTP) instead of USB storage so FileObserver will work on newer versions of OS.

Navoneel Talukdar
  • 4,393
  • 5
  • 21
  • 42