FileObserver does not work on external storage in Android 6.0 Marshmallow (API 23)

后端 未结 1 1931
生来不讨喜
生来不讨喜 2021-02-06 23:37

I have an app that observes a public directory on external storage with FileObserver. It works fine on Lollipop devices. I want to add support for

1条回答
  •  生来不讨喜
    2021-02-06 23:59

    This appears to be a bug in Marshmallow, see this link.

    This is not fixed even in Nougat, you could get rid of the API this whole FileObserver, as it makes completely useless the fact that on most of the devices, it will not work.

    0 讨论(0)
提交回复
热议问题