tags:

views:

53

answers:

0

Hi!

I'm trying to control soft keyboard using this:

((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
            .hideSoftInputFromInputMethod(filterText.getWindowToken(), 0);
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE))
            .showSoftInput(filterText, InputMethodManager.SHOW_IMPLICIT);

But nothing happens on the device when i call this code. What can cause such behavior?