I have carefully copied the following code snippet from an earlier posting and it works, on the simulator and also on my Nexus 9 device, up to a point !
However, all I g
For me its working on emulator but not on real Android 5 phone. I even checked google android Directory Selection sample and it also did not work.
So, its surely a bug whose effect can be seen on some phones.
Report this bug to google and wait till it is fixed. Till then all you can do is to restrict access to memory card in your app, which is what you may not want to do. But I think there is nothing that we can do from our side before google fixes it.
If you get any workaround for this you can tell me too.