Reputation: 20223
I have a layout with 2 Edittexts: Email with requestFocus and password. When the View is opened, i have no keyboard and I have to click on the password edit text to get it. Do you may be know why?
Upvotes: 0
Views: 485
Reputation: 20223
I have found the solution, the problem was on the RequestFocus writen on xml. I deleted this line and now it works.
Upvotes: 0
Reputation: 20041
//To show softkeyboard
onCreate() write the below code
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
.showSoftInput(emailedittext, 0);
Upvotes: 1