How to keep soft keyboard from opening on activity launch in Android? -


In an Android app, whenever the activity begins, the text box gets focus and the soft keyboard will automatically pop I have tried to stop it by using the following line in the Create method, but it does not work.

  (InputMethodManager) getSystemService (context.INPUT_METHOD_SERVICE)) hideSoftInputFromWindow (EditText.getWindowToken ()), 0);  

I know this is old, but it may happen that someone in the future

> & lt; Activity ... Android: windowSoftInputMode = "Statued; Adjust Resize" ... & gt;


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -