SelectLibrary: selectInput(), selectFolder() and selectOutput() for Android
in
Library and Tool Development
•
8 months ago
Hi everyone!
I'was fixing http://code.google.com/p/processing/issues/detail?id=1113 issue.
Finally, after @BenFry comments, I reimplemented that functionality from core patch to the library.
Here's github project homepage:
http://pif.github.com/android-select-file/
Generally, one should create an instance of SelectLIbrary and then call library.selectInput(...) instead of just selectInput(...):
Urls:
http://pif.github.com/android-select-file/download/SelectFile.txt
http://pif.github.com/android-select-file/download/SelectFile.zip
Try that and post your feedback, please!
Regards,
Ostap
I'was fixing http://code.google.com/p/processing/issues/detail?id=1113 issue.
Finally, after @BenFry comments, I reimplemented that functionality from core patch to the library.
Here's github project homepage:
http://pif.github.com/android-select-file/
Generally, one should create an instance of SelectLIbrary and then call library.selectInput(...) instead of just selectInput(...):
- import select.files.*;
- SelectLibrary files;
- void setup() {
- size(320, 240);
-
- files = new SelectLibrary(this);
-
- files.selectInput("Select a file to process:", "fileSelected");
- // files.selectFolder("Select a folder to process:", "fileSelected");
- // files.selectOutput("Save the file please:", "fileSelected");
- }
- void fileSelected(File selection) {
- if (selection == null) {
- println("Nothing was selected.");
- } else {
- println("User selected " + selection.getAbsolutePath());
- }
- }
Urls:
http://pif.github.com/android-select-file/download/SelectFile.txt
http://pif.github.com/android-select-file/download/SelectFile.zip
Try that and post your feedback, please!
Regards,
Ostap
1