public void hideKeyboard ( ) { InputMethodManager inputMethodManager = ( InputMethodManager ) getContext ( ) . getApplicationContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; inputMethodManager . hideSoftInputFromWindow ( mPhoneEdit . getWindowToken ( ) , 0 ) ; }
Hide keyboard from phoneEdit field