當我開始新的活動時,android軟鍵盤會自動打開,我想禁用它。我嘗試了這段代碼。當我們開始新的活動時,android軟鍵盤會自動打開。我必須關閉android軟鍵盤
InputMethodManager inputManager = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(getCurrentFocus()getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS。);
BT didnt work.so將請人幫我出
從你的第二個活動的XML刪除焦點file.May被你已經在XML中提供重點=真文件在某處。 –