processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

openKeyboard() does not open the keyboard when called from setup()

Open codeanticode opened this issue 7 years ago • 3 comments

This sketch:

void setup() {
  fullScreen();
  openKeyboard();
}

void draw() {
  background(0);
}

does not open the keyboard.

codeanticode avatar May 23 '18 20:05 codeanticode

Strangely enough, the keyboard does not open until the 9th frame of the sketch, tested on a N5X with Android 8.1. The following code opens he keyboard:

void draw() {
  background(0);
  if (frameCount == 9) {
    openKeyboard();
  }
}

This code does not open the keyboard:

void draw() {
  background(0);
  if (frameCount == 8) {
    openKeyboard();
  }
}

In any case, this is a very low priority issue, so will take out from the 4.0.2 milestone.

codeanticode avatar Jun 17 '18 20:06 codeanticode

I just added if(framecount==9) condition inside openKeyboard(); function. Will this be considered as solution of this issue??

pallav12 avatar Jan 03 '20 10:01 pallav12

This problem is still present. Can this be fixed anyhow? It is a bit annoying that the keyboard cannot be opened right at the start of the application, but must be triggered depending on the frameCount.

hkiel avatar Feb 23 '23 10:02 hkiel