I want to enable/disable key-tap sound in android version higher then 4.2. There are any way to change default setting through programming. Thanx in advance.
You can mute the sound when your app starts and unmute when it finishes using AudioManager
@override
public void onResume(){
super.onResume();
// this mute the Sound
AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
mgr.setStreamMute(AudioManager.STREAM_SYSTEM, true);
}
@override
public void onPause(){
super.onPause();
AudioManager mgr = (AudioManager)getSystemService(Context.AUDIO_SERVICE);
mgr.setStreamMute(AudioManager.STREAM_SYSTEM, false);
}