android softkeyboard showSoftInput vs toggleSoftInput
<p><code>showSoftInput()</code> doesn't show the keyboard for me, but <code>toggleSoftInput()</code> does. I saw some other post that said to disable the hard keyboard when using the emulator, but I'm not using an emulator. I'm loading my APK on an actual device with no hard keyboard. Shouldn't both methods work? Why doesn't <code>showSoftInput()</code> work?  I would like to explicitly associate the keyboard with a specific text field.</p>

<p>Doesn't work:</p>

<pre><code>InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
editText.setText("textchange"); //i see the text field update
imm.showSoftInput(editText, InputMethodManager.SHOW_FORCED);
</code></pre>

<p>Works:</p>

<pre><code>InputMethodManager imm = (InputMethodManager) getDelegate().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
</code></pre>
