I have 2 EditTexts in the MainActivity Layout. If i run the application normally the 1st EditText gets focused but the softkeyboard is not openned.
but when i used t
Try specifying the android:windowSoftInputMode attribute in your AndroidManifest.xml file for your activity.
AndroidManifest.xml
For example:
You probably don't need any of the code that uses InputMethodManager in your Activity.
InputMethodManager