Emulator problem: simple sketch works, examples don't
in
Android Processing
•
3 months ago
I've installed the Android SDK and successfully ran a simple sketch on the emulator through Android Mode. However, every time I try to run the examples (from AndroidMode/examples) I get the following error in the emulator:
"Sorry! The application Particles (process processing.test.particles) has stopped unexpectedly. Please try again."
The Processing window shows no errors and displays the "Sketch launched on the emulator" message. If I run the Particles sketch in Java mode it works fine.
I'm running Android SDK Tools Rev. 22.0.1, Android 2.3.3 (API 10), and Processing 2.0.
The following code works fine in the emulator:
//this code was copied from processing.org/tutorials/android/
void setup() {
size(480,800);
noStroke();
fill(255);
rectMode(CENTER); // This sets all rectangles to draw from the center point
}
void draw() {
background(#FF9900);
rect(width/2, height/2, 150, 150);
}
Any ideas? Thanks in advance for your time.
2