I have several pages which are implemented using the ViewGroup class.
I display a particular page by calling:
setContentView(vg);
Now if I go to a page which has an edit control, and touch within the
control, the virtual keyboard is presented. If I now navigate to
another page (and do a new setContentView) the virtual keyboard
remains in place. How do I dismiss that keyboard programatically? I
have tried the following with out success:
InputMethodManager inputManager = (InputMethodManager)
this.getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(vg.getWindowToken(),
InputMethodManager.HIDE_NOT_ALWAYS);
and also
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
Any Idea?
Thanks
--
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