I am developing an android app where most users use a hardware keyboard attached to the android device for easy character input.
Even though the hardware keyboard is present, when user clicks on an EditText
, the virtual keyboard pops up which is unnecessary.
I need to give the user a setting to completely disable the virtual keyboard so they can use the hardware keyboard alone.
This question has several answers on how to disable soft keyboard for a single EditText
, but conditionally disabling soft input for inividual EditText
s is quite difficult for me since there are large number of activities which contain EditText
s.
One way to do is to install Null Keyboard
app and select it as the virtual keyboard from android settings as described here, but I don't want users of my application to rely on a third party application.
Is there a way to globally disable virtual keyboard without disabling it for individual screens?