Another black screen when exiting app via Home
in
Android Processing
•
3 years ago
I recently added a separate thread to my program - images seem to load (much) quicker now as compared to when they were loaded in the setup routine. However, this seems to cause the black screen when I start the app again. The same phenomenon was described
here but was "fixed" when using A3D in the size() command. The issue has cropped up again now that I have started to use a separate thread.
The code is basically set up like this:
- void setup(){
- ...
- imageThread = new imageThread(); // loads images faster
- imageThread.start();
- }
- void draw(){
- ...
- }
- private class imageThread extends Thread{
- imageThread();
- public void run() {
- // Load images here.
- }
- }
Note: Using System.Exit(0) seemed to fix the black screen problem but that may have it's own issues...
1