Hi,

I'm trying to close the soft keyboard once a search button is clicked
with:

// close soft keyboard
InputMethodManager inputManager = (InputMethodManager)
ShowSearchQuery.this.getSystemService(Context.INPUT_METHOD_SERVICE);

inputManager.hideSoftInputFromWindow(editSearchQuery.getWindowToken(),
InputMethodManager.HIDE_IMPLICIT_ONLY);

where editSearchQuery is the EditText view for the search input.

But the soft keyboard is not closing? Am I using the correct methods/
views?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to