To manually close it, use the InputMethodManager class which you can
retrieve from Context.

On Thu, Jul 2, 2009 at 8:58 AM, DonB <[email protected]> wrote:

>
> Did anyone get this resolved? I have the same issue.
>
> Don
>
> On Jun 6, 9:29 am, Bram <[email protected]> wrote:
> > 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 thesoftkeyboard?
> >                 }
> >         }
> >
> >         public void beforeTextChanged(CharSequence s, int start, int
> count,
> > int after) {
> >         }
> >
> >         public void onTextChanged(CharSequence s, int start, int before,
> int
> > count) {
> >         }
> >
> > });
> >
> > regards,
> > Bram
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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