EmmanuelPil / Android-java-code-utilities-widgets-for-Processing-for-Android

Android code for Processing for Android
16 stars 9 forks source link

Remark on FileExplorer #3

Closed uheinema closed 4 years ago

uheinema commented 4 years ago

Hi again.

I have been (trying) pretty much the same, with mixed results...

Some tinkering later:

Seems to be at least partially related to your use of settings/fullscreen:

keeps the App running.

Actually too much, as each mousePressed triggers the activity sgain..easy to fix by checking click area...

And now I will have to find out why my app is exiting on a non-RESULT_OK...hoped I could make you figure that out ;-)

And I had different plans for the weekend than fighting Android battles I cant win, too.

So far Have a good week.

PS: Putting somrthin into draw() seems to help, too

void draw() {
  background(0xff000000|frameCount);
  text("Click on screen", width/2, height/3);
  //if (img_loaded)  image(img, 0, 0);
}

void mousePressed() {  
  if(mouseY<height-height/8)
    searchFile();
}
EmmanuelPil commented 4 years ago

As commented above the code; it works only up to Kitkat. To avoid the app exiting I think you can use a try catch block.