Possible Duplicate:
Is there a way to tell if the soft-keyboard is shown?
In an application i want to check Softkeyboard is shown on the activity screen .
plz help
Possible Duplicate:
Is there a way to tell if the soft-keyboard is shown?
In an application i want to check Softkeyboard is shown on the activity screen .
plz help
There is a workaround if you are interested, you can use getCurrentFocus()
to return the view which is in focus and check if its an instance of EditText, if it is then you know the softkeyboard is visible, provided the primary input in softkeyboard and not physical keyboard.
protected boolean IsSoftKeyboardVisible(){
if(getCurrentFocus()!=null && getCurrentFocus() instanceof EditText){
return true;
}
return false;
}