((InputMethodManager) getSystemService(INPUT_METHOD_SERVICE)) .hideSoftInputFromWindow(this .getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);