Android code doesnt upload

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?

Try deleting the while(true){ }. The delay slows things down, but it does work on my system(tablet). Also the x coordinates seem a little high for a phone; I had to decrease the ‘La panatela…’ x coordinate to a much smaller number to fit the line of text on the screen (landscape orientation). ‘print’ needs to be changed to ‘println’ in order to see the screen size.