Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

FullScreen removed after soft keyboard use

$
0
0
Hello, my sketch runs in fullscreen (and orientation(landscape))and it's OK. But when I open a soft keyboard with:

void showSoftKeyboard() {
android.view.inputmethod.InputMethodManager imm = (android.view.inputmethod.InputMethodManager) getActivity().getSystemService(android.content.Context.INPUT_METHOD_SERVICE);
  imm.showSoftInput(getActivity().getCurrentFocus(), 0);
   }

void hideSoftKeyboard() {
android.view.inputmethod.InputMethodManager imm = (android.view.inputmethod.InputMethodManager) getActivity().getSystemService(android.content.Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), 0);
  deci=0;
   }

The fullscreen disappears and it's impossible to remove the task bar on the right of the screen.
Any idea?
Thanks in advance

Viewing all articles
Browse latest Browse all 941

Trending Articles