How can I get to know keyboard is open.actually my problem is that if keyboard is open then only I call for hide,not for always call hide. is there any method to check if keyboard is open ? currently I am using this method to hide keyboard.
EditText myEditText = (EditText) findViewById(R.id.myEditText);
View view = this.getCurrentFocus();
if (view != null) {ditText) findViewById(R.id.myEditText);
View view = this.getCurrentFocus();
if (view != null) { Inp`
im.hideSoftInputFromWindow(view.getWindowToken(), 0);