how to hide the softkeyboard?
<p>I've an activity that displays a view. The view consists of various widgets, one of which is a multiline EditText. When the view is inflated the softkeyboard comes up how can i disable it?</p>

<p>Things i have tried:</p>

<p>removing the following from the layout from within the EditText.</p>

<pre><code>&lt;requestFocus /&gt;
</code></pre>

<p>.</p>

<p>creating the following method then calling it from the oncreate method (resolution is the EditText).</p>

<pre><code>private void hideSoftKeyboard() {

        InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(resolution.getWindowToken(), 0);

    }
</code></pre>
