SelectFile library generates a “FATAL EXCEPTION: main” error

Hi Paul,
Better late than never I decided to try the code above you posted some time ago. All went well until the actual selection of a file. The sketch opened the build-in android fileselector on the phone and I could easily navigate to whatever file on the internal and external storage. The files were visible as thumbnail or as list but they were all greyed out. So it is not possible to make a selection. I checked to permissions but there all was fine. I noticed in the error console the following statements:
The method getExternalStorageDirectory() from the type Environment is deprecated (line 62)
The MediaStore.MediaColumns.DATA is deprecated. (line 135)
Googeling the first statement I found that getExternalStorageDirectory() could be replaced by Context.getExternalFilesDir().getAbsolutePath();
Unfortunately this creates another error. Regrettably my understanding of Java is rather primitive which means I cannot solve this myself. Can you please help me.
regards, marc