How to enable both hardware and virtual keyboards on Android ice cream sandwich

前端 未结 6 1340
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 13:47

I\'m developping a stock management application with Django for a customer\'s company, and want to use an ice cream sandwich tablet as the end-user device. I use an USB barc

6条回答
  •  遥遥无期
    2020-12-05 14:19

    You could use InputMethodManager to force the software keyboard open:

    InputMethodManager imm = (InputMethodManager)getContext().getSystemService(
                                                  Context.INPUT_METHOD_SERVICE); 
    imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
    

提交回复
热议问题