I have a listview with textfilterenabled. On some devices the keyboard shows when you click long on the menu button, but on some devices it's standard not possible to display the keyboard.
Does anybody know how to show the keyboard on a long click on the menu button. I have already a code but it's not working. The keyboard doesn't show up.
My code:
@Override
public boolean onKeyLongPress(int keycode, KeyEvent event){
if (keycode == KeyEvent.KEYCODE_MENU){
InputMethodManager inputMethodManager=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.showSoftInput(lv, InputMethodManager.SHOW_IMPLICIT);
}
return true;
}
Thanks in advance!