Is it possible to prevent the user from closing the soft keyboard. In other words, keyboard to be available on the screen (at all times) while my activity is visible. Is this possible? If so, how would you accomplish it?
This should force the keyboard to show regardless of focus :
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(yourViewObject.getWindowToken(), 0);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With