**
You can use this code. May solve this problem. put the code in OnCreate ().
**
InputMethodManager imm = (InputMethodManager) getSystemService (Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow (((EditText) findViewById (R.id.ivAppSearch)) .getWindowToken (), 0);
or
GetWindow () setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN) ;.
source share