this mechanism works for me, however i'm doing it from onClick() on 
my "login" button and using the button's view to get the window 
token. i'm no expert on tokens and there may be some subtlety 
involved between buttons & text views.





>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]
>For more options, visit this group at
>http://groups.google.com/group/android-developers?hl=en


-- 
jason.vp.engineering.particle

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