InputMethodManager imm = (InputMethodManager)getSystemService(.INPUT_METHOD_SERVICE); //Show the keyboard (editText, 0); //Hide the keyboard ((), 0);