I wanted to know if is it possible to hide the microphone button (speech-to-text) in Android Virtual Keyboard programatically.
I know I can disable this option through device settings, but I don’t want the user to use this feature in my application independently of his/her settings.
I mean i want to force this behaviour inside my app.
Thanks in advance,
Demian
You can’t force the user input through anything other than pre-defined keyboards that already exist in the user’s device.
The only way you could get around this is by programming your own custom, on-the-fly keyboard, and that is a very bad idea.
Just disable voice input programmatically by using XML declarations in the EditText you’re looking at. You can do this with the attribute: