Android: How can I hide the softkeyboard when the input was made ?

Just add the two lines into your code:

[java]

InputMethodManager manager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
manager.hideSoftInputFromWindow(editText.getWindowToken(), 0);

[/java]

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.