Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide microphone button Android virtual keyboard

Tags:

android

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

like image 391
Demian Avatar asked Sep 13 '11 16:09

Demian


People also ask

How do I hide the buttons on my keyboard?

To hide keyboard, use the following code. InputMethodManager inputMethodManager = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); inputMethodManager. hideSoftInputFromWindow(v. getApplicationWindowToken(),0);


1 Answers

Here's how you do it: android:privateImeOptions="nm" - nm stands for No Microphone.

like image 82
markostamcar Avatar answered Oct 05 '22 09:10

markostamcar