1、首先要先把光标定位到可编辑的控件里面,比如EditText,否则拉起不了
mEtArenaname.requestFocus();
2、然后再拉起软硬盘
public void opeSystemKeyBoard() { InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(this.getCurrentFocus(), InputMethodManager.SHOW_FORCED); }