# Android code doesnt upload

**URL:** <https://discourse.processing.org/t/android-code-doesnt-upload/38639>\
**Category:** Processing for Android\
**Created:** [September 4, 2022, 2:23am UTC](https://discourse.processing.org/t/android-code-doesnt-upload/38639 "2022-09-04T02:23:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_random\_cat](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@a\_random\_cat](https://discourse.processing.org/u/a_random_cat)\
**Post date:** [September 4, 2022, 2:23am UTC](https://discourse.processing.org/t/android-code-doesnt-upload/38639/1 "2022-09-04T02:23:14Z")

</div>

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [September 4, 2022, 3:39am UTC](https://discourse.processing.org/t/android-code-doesnt-upload/38639/2 "2022-09-04T03:39:48Z")

</div>

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.
