Milos Cuculovic
Milos Cuculovic

Reputation: 20223

Android keyboard does not work properly

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

Answers (2)

Milos Cuculovic
Milos Cuculovic

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

Padma Kumar
Padma Kumar

Reputation: 20041

//To show softkeyboard

onCreate() write the below code

((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
                .showSoftInput(emailedittext, 0);

Upvotes: 1

Related Questions