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.
public static final string modify_audio_settings constant value:android.permission.modify_audio_settings"
public static final string write_settings constant value: "android.permission.write_settings"
Comments
Post a Comment