import android.content.*; svoid aShowKeyboard() { View view = aActivity().getCurrentFocus(); if (view != null) { InputMethodManager inputManager = (InputMethodManager) aActivity().getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.toggleSoftInputFromWindow(view.getWindowToken(), InputMethodManager.SHOW_FORCED, 0); } }