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
To hide keyboard, use the following code. InputMethodManager inputMethodManager = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); inputMethodManager. hideSoftInputFromWindow(v. getApplicationWindowToken(),0);
Here's how you do it: android:privateImeOptions="nm" - nm stands for No Microphone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With