risolto con:
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT _METHOD_SERVICE);
imm.hideSoftInputFromWindow(text.getWindowToken(), 0);