Android, getting PApplet context for library?
in
Core Library Questions
•
2 years ago
Hey, I've been browsing the source for the new processing implementation and I can't for the life of me find a way to grab the application context from the PApplet. Does someone know a way to do that?
I need to pause the sketch launch until a certain task has finished, and I'd like to add a feedback to the user in the shape of some sort of progressbar... so I was thinking the built in one might be handy.
This is outside of the actual sketch (a library), so any generic tricks like getApplicationContext() are not available.
What about implementing some sort of generic handler in the PApplet class for tasks like this, is that an option?
I need to pause the sketch launch until a certain task has finished, and I'd like to add a feedback to the user in the shape of some sort of progressbar... so I was thinking the built in one might be handy.
This is outside of the actual sketch (a library), so any generic tricks like getApplicationContext() are not available.
What about implementing some sort of generic handler in the PApplet class for tasks like this, is that an option?
1