How can you dynamically close the virtual keypad through code? All I want to do is close it when the user clicks an "Ok" button because it is not closing itself even though the button now has focus.
That doesn't answer the question
Tawani
2009-12-08 20:14:28
Yes, it does. "You can force Android to hide the virtual keyboard using the InputMethodManager, calling hideSoftInputFromWindow, passing in the token of the window containing your edit field." That answers your question "How can you dynamically close the virtual keypad through code?".
CommonsWare
2009-12-09 06:10:32
"hide" != "close"I will still need the keypad to open when I click again in another text field
Tawani
2009-12-09 14:56:04
I had to attach this to a button so that the keypad can keep reappearing the next time I entered a text box
Tawani
2010-01-20 15:01:02