There is no real way to check, but you can check if this action works or not.
boolean isClosing = false; InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); isClosing = imm.hideSoftInputFromWindow(tabHost.getApplicationWindowToken(), 0);
This will return false if the keyboard was closed and true if it was open and is now closed.
source share