What flag is that?  All I see documented are --

int     HIDE_IMPLICIT_ONLY      Flag for hideSoftInputFromWindow(IBinder,
int) to indicate that the soft input window should only be hidden if
it was not explicitly shown by the user.
int     HIDE_NOT_ALWAYS         Flag for hideSoftInputFromWindow(IBinder, int)
to indicate that the soft input window should normally be hidden,
unless it was originally shown with SHOW_FORCED.

http://developer.android.com/intl/fr/reference/android/view/inputmethod/InputMethodManager.html

tia.

On Nov 11, 6:40 pm, Dianne Hackborn <[email protected]> wrote:
> You need to pass the flag to force it to be hidden.
>
>
>
> On Wed, Nov 11, 2009 at 5:09 PM, sdphil <[email protected]> wrote:
> > i am attempting to hide a forcibly opened soft keyboard using --
>
> >        // hide the soft keyboard.
> >        View view = (View) findViewById(R.id.DebugText);
> >            InputMethodManager manager = (InputMethodManager)
> > getSystemService(Context.INPUT_METHOD_SERVICE);
> >        IBinder binder = view.getApplicationWindowToken();
> >        if (binder != null) {
> >                manager.hideSoftInputFromWindow(binder, 0);
> >        }
>
> > but it doesn't seem to be working - any ideas?
>
> > tia.
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> 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