Android: How can i show a keyboard along with the edit text?
<p>I am developing an app in which i need to show a keyboard along with the edit text in a single activity? My edit text is shown in a custom dialog?</p>

<pre><code>InputMethodManager mgr = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); 
mgr.showSoftInput(txtPrice, InputMethodManager.SHOW_IMPLICIT);
</code></pre>

<p>I used the above code in oncreate method, but still it is not working? can anyone help me on this?</p>
