Sketches don't want to 'quit' on the phone
in
Android Processing
•
2 years ago
I've had this problem since I first started putting sketches on my phone (Samsung Captivate, 2.1): Once started, they don't seem to stop. If I either 'present' a sketch to the phone from Processing, or (once it's installed on the phone) I launch it, I can track its status in the Dalvik Debug Monitor. Once started, the
processes never seem to turn off. When the sketch is running, if I press the 'back' or 'home' button,
I do return back to the phone desktop, but in the DDM, I can still see the process present as running.
The issue is, if I try and launch the app again, it often will misbehave, the most common symptom is having the screen turn black, but the sketch is running (I confirmed this by writing a sketch that had graphics and vibrated... the vibration worked but the graphics didn't). However If I track the "running services" from my phone, the sketch isn't present. So I either have to reboot the phone, or kill the process in the DDM.
Anyone else running into this, and if so, have a solution? It's like the parent Activity doesn't want to quit.
The issue is, if I try and launch the app again, it often will misbehave, the most common symptom is having the screen turn black, but the sketch is running (I confirmed this by writing a sketch that had graphics and vibrated... the vibration worked but the graphics didn't). However If I track the "running services" from my phone, the sketch isn't present. So I either have to reboot the phone, or kill the process in the DDM.
Anyone else running into this, and if so, have a solution? It's like the parent Activity doesn't want to quit.
1