I have an application with an EditText element on the main view.
This means that when my application is loaded the soft keyboard appears per default.
I
InputMethodManager imm =
(InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);
This will hide in all situations (even when the EditView has focus):
EditText editView = (EditText) findViewById(R.id.editTextConvertValue);
editView.setInputType(InputType.TYPE_NULL);