If you want to control the soft keyboard in your code, you can use InputMethodManager to call it and reject it. getSystemService () is an activity call.
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(activeView, 0);
source
share