settings - Enable Android System Touch Sounds -


i'm trying enable/disable touch sounds programmatically service.

what did until is:

settings.system.putint(getcontentresolver(),      settings.system.sound_effects_enabled,      sound_effects); 

sound_effects can 0(disabled) or 1(enabled)

but doesn't affect general settings - settings in android os remain unchanged ... if manually change them, above code doesn't change them accordingly.

how change settings programmatically ? keytone, touch sounds, screen lock sound ?

thanks

i think u missing permission . add following permissions.

  1. public static final string modify_audio_settings constant value:android.permission.modify_audio_settings"

  2. public static final string write_settings constant value: "android.permission.write_settings"


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -