<分区>
Possible Duplicate:
Android: show soft keyboard automatically when focus is on an EditText
我正在编写一个应用程序,我需要做的主要事情之一是打开键盘并能够在焦点所在的文本字段上键入内容。
我试过:
((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE)).toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);
这行不通,谁能给我提示?