• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Change android system settings by code.

c2tarun

Newbie
Apr 4, 2012
20
1
Hi friends,

Can anyone tell me about some tutorial for changing android system settings by code.
System Settings like:
Ringtones
Vibration
Volume
Brightness
etc

If anyone please tell me the names of the classes in which I have to look into, it will also be helpful.

Thanks
 
Upvote 0
have you tried the Settings.System class ? Or this one : Can I update an Android provider.Settings.System value?


I tried using Settings.System and changed SCREEN_BRIGHTNESS value to the value of a seek bar. But the problem is value is not changing as I am changing the value from seek bar. It is changing after the application is getting closed and mobile is getting locked, and when I am unlocking the phone, I am seeing the new brightness.
Why so?
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones