Please note that my lib also has a working text input class, called text area, ive made other posts on the forum if you want to see examples,
Also mine makes use of ala android file browser, and the only one ive found to be compatible is
File explorer by Xiaomi on the app store.
From the looks of things you probably have a problem as you havent set the permission requests in your sketch.
However the selectFile seems to have been made for an older version of android and its likely it wont work without choosing an alternative method for permission requests.
Please see their example sketch to see what i mean.
*
* This minimalistic sketch shows how to use `selectFile()` on Android.
*
* This sketch requires the READ_EXTERNAL_STORAGE permission to be selected
* through the Sketch Permissions list in the PDE, and then to use the requestPermission()
* function in the code, since READ_EXTERNAL_STORAGE is a dangerous permission that must
* be requested during run-time in Android 23 and newer:
* https://developer.android.com/guide/topics/permissions/requesting.html#normal-dangerous
*/
import select.files.*;
SelectLibrary files;
void setup() {
size(displayWidth, displayHeight);
files = new SelectLibrary(this);
//these are the permissions you need but since api 28
//you have to request user input to confirm them.
//The link i have provided should include a
//permission class to address this problem.
if (!hasPermission("android.permission.READ_EXTERNAL_STORAGE")) {
requestPermission("android.permission.READ_EXTERNAL_STORAGE", "handleRequest");
}
// files.selectFolder("Select a folder to process:", "fileSelected");
// files.selectOutput("Save the file please:", "fileSelected");
}
void handleRequest(boolean granted) {
if (granted) {
files.selectInput("Select a file to process:", "fileSelected");
} else {
println("Does not have permission to read external storage.");
}
}
void fileSelected(File selection) {
if (selection == null) {
println("Nothing was selected.");
} else {
println("User selected " + selection.getAbsolutePath());
}
}