How can I find out that the keyboard is open. Usually my problem is that if the keyboard is open, then I only invoke the hide, and not always invoke the hide. is there any way to check if the keyboard is open? I am currently using this method to hide the 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);
source share