private void onClick(){
  onIdentityserverUrlUpdate();
  onHomeserverUrlUpdate();
  InputMethodManager imm=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(mHomeServerText.getWindowToken(),0);
}

private void onClick ( ) { onIdentityserverUrlUpdate ( ) ; onHomeserverUrlUpdate ( ) ; InputMethodManager imm = ( InputMethodManager ) getSystemService ( Context . INPUT_METHOD_SERVICE ) ; imm . hideSoftInputFromWindow ( mHomeServerText . getWindowToken ( ) , 0 ) ; }
dismiss the keyboard and save the updated values
