hide keyboard in android?
Posted
by Niranjan Khandelwal
on Stack Overflow
See other posts from Stack Overflow
or by Niranjan Khandelwal
Published on 2010-04-02T09:52:13Z
Indexed on
2010/04/02
9:53 UTC
Read the original article
Hit count: 753
Hello all, I am new to android development.
I am creating an application in which when app launches the edittextfield getfocus automatically and the keyboard pop-up.I want to hide the keyboard by default and show when edittextField get focus.I have tried this method but it's not working.
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);
Thanks Niranjan Khandelwal
© Stack Overflow or respective owner