Sorry, no anwser. I have the same question. Did you get this sorted
out? In my use-case I clear the focus from an EditText and thus want
the keyboard gone too..


myPageEditText.addTextChangedListener(new TextWatcher() {

        public void afterTextChanged(Editable s) {
                if(myPageEditText.getText().length() == 3){
                        myPageEditText.clearFocus();

                        // How to close the soft keyboard?
                }
        }

        public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
        }

        public void onTextChanged(CharSequence s, int start, int before, int
count) {
        }

});

regards,
Bram

--~--~---------~--~----~------------~-------~--~----~
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