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
Post a Comment