简体   繁体   中英

How to turn off button clicks in Android programmatically

I am writing a program that records audio while the user is typing.

I am finding that the audio playback includes the tapping sound of the keyboard.

Is there any way to (a) determine if the the keyboard click feedback sound is set, (b) if so turn it off, and (c) turn it back on again (if it was on to begin with) when the person exits the program

The keyboard sounds and also other sounds effects can be control with AudioManager. Please refer to android documentation: 'Keyboard and direction pad click sound' http://developer.android.com/reference/android/media/AudioManager.html#FX_KEY_CLICK

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM