softkeyboard doesn't show in landscape mode?
<p>I have to show app in both orientation but when i tap edittext it shows softkeyboard but it works only in portrait mode.</p>

<p>i used code to show softkeyboard </p>

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

<p>and code to hide softkeyboard</p>

<pre><code>InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
                imm.hideSoftInputFromWindow(nameEditText.getWindowToken(), 0);
</code></pre>

<p>when i switch on to landscape it doesn't show softkeyboard 
how can i show softkeyboard in landscape mode.</p>

<p>thanks..</p>
