Hello.
I’m creating my first code on Processing for android, and the problem is that when I hit “Run on device”, my phone doesn’t show it. It doesn’t even shows up a new app on the menu.
Here is the code:
int pantalla1 = 0;
int pantalla2 = 0;
int tam1 = 0;
int tam2 = 0;
void setup() {
fullScreen();
noStroke();
fill(0,0,0);
}
void draw() {
delay(1000);
textSize(128);
background(204);
tam1 = width;
tam2 = height;
print("The Screen Size is: ",tam1," ", tam2);
while(true){
if (mousePressed) {
pantalla1 = mouseX;
pantalla2 = mouseY;
textSize(128);
String mouse1 = "Pantalla en X: " + String.valueOf(pantalla1);
String mouse2 = "Pantalla en Y: " + String.valueOf(pantalla2);
text(mouse1,500,500);
text(mouse2,500,1000);
}
else{
text("La pantalla no esta presionada",500,500);
}
}
}
The weird thing is that any other example from the Android mode uploads without a problem. Is there something wrong with my code?