OK Thanks. I found the file dialog is working correctly in my new program, but for some reason not in my old. So the library must be ok. I am using 4.01
I'm not sure if you are facing the same problem that I thought I was facing until I realised I was looking at a dialog with white text against a white background. Since SDK 24 some default colours have changed. Obviously, setting the text colour fixes the problem.