Change android system settings by code.


Last Updated:

  1. c2tarun

    c2tarun Member This Topic's Starter

    Joined:
    Apr 4, 2012
    Messages:
    20
    Likes Received:
    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
     

    Advertisement
  2. Crashdamage

    Crashdamage Well-Known Member

    Joined:
    Feb 25, 2011
    Messages:
    4,451
    Likes Received:
    2,728
    Try posting your question on XDA Developer forum. Or a search there might find the answer already posted.
     
  3. Rush

    Rush {<>}~{<>}

    Joined:
    Jan 31, 2011
    Messages:
    18,742
    Likes Received:
    3,140
    Thread moved. &#12471;
     
  4. c2tarun

    c2tarun Member This Topic's Starter

    Joined:
    Apr 4, 2012
    Messages:
    20
    Likes Received:
    1
  5. myrecek

    myrecek Active Member

    Joined:
    May 10, 2012
    Messages:
    29
    Likes Received:
    2
  6. c2tarun

    c2tarun Member This Topic's Starter

    Joined:
    Apr 4, 2012
    Messages:
    20
    Likes Received:
    1


    I was also having some problem in writing settings by Settings.System, I scanned docs and found methods like putString and many else. I'll go home and try today. It work or didn't work I'll reply here tomorrow.
     
  7. c2tarun

    c2tarun Member This Topic's Starter

    Joined:
    Apr 4, 2012
    Messages:
    20
    Likes Received:
    1

    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?
     

Share This Page

Loading...