Wednesday, 13 July 2011

How to Hide Soft Key Board Manually in Android

If you want to hide Force fully Soft Keyboard that open from any Edit Text in android than you can use following code to do .

InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
mm.hideSoftInputFromWindow(edit_text.getWindowToken(), 0);

here edit_text is EdiText object from android android.widget.EditText .

No comments:

Post a Comment