G4P on Android mode error (GENERAL)
in
Android Processing
•
7 months ago
I am not able to run any G4P application on Android.
Following error occurs :
Smooth is not supported by this hardware (or driver)
FATAL EXCEPTION: GLThread 4536
java.lang.VerifyError: g4p_controls/GAbstractControl
at processing.test.g4p_imagebuttons.G4P_ImageButtons.setup(G4P_ImageButtons.java:45)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.opengl.PGL$AndroidRenderer.onDrawFrame(Unknown Source)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1520)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1244)
My application is cut off version of Peter Lager original
import g4p_controls.*;
GImageButton btnGhost;
GLabel lblOut;
long timer;
void setup() {
size(displayWidth, displayHeight, P3D);
smooth(0);
// cursor(CROSS);
String[] files;
files = new String[] {
"ghost0.png", "ghost1.png", "ghost2.png"
};
btnGhost = new GImageButton(this, 40, 90, files);
timer = millis() - 5000;
}
void draw() {
background(220, 220, 255);
// Only display button info for 4 seconds
// if (millis() - timer > 4000) {
// lblOut.setText("CLICK ON A BUTTON");
// }
}
// When a button has been clicked give information aout the
// button
void handleButtonEvents(GImageButton button, GEvent event) {
timer = millis();
}
Any idea
1