SelectFile library generates a “FATAL EXCEPTION: main” error

That’s because you also have folder set to true. You can only do one or the other, however if both are true it will first attempt to locate a folder. So pointing to a file won’t work.