Question

How to change Screen Lock sounds settings (from Settings->Sounds->screen lock sounds) checkbox programmatically on Android?

For example if I want to change haptic feedback setting i'll do:

Settings.System.putInt(m_context.getContentResolver(), Settings.System.HAPTIC_FEEDBACK_ENABLED, bEnable ? 1 : 0);

What define for Screen Lock Sounds?

Was it helpful?

Solution

According to Android Source code its constant is "LOCKSCREEN_SOUNDS_ENABLED"

http://androidxref.com/4.2_r1/xref/packages/apps/Settings/src/com/android/settings/SoundSettings.java#301

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top