In onpause of your activity you should do the following
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(et.getWindowToken(), 0);
Where et is an instance of your EditText.
Commonman
source share