1. Check out our app, Forums for Android! Download and leave feedback here!

Change android system settings by code.

Discussion in 'Application Development' started by c2tarun, Jun 7, 2012.

  1. c2tarun

    c2tarun Member
    Thread Starter
    16

    Apr 4, 2012
    20
    1
    16
    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
    643

    Feb 25, 2011
    4,451
    2,745
    643
    Mostly retired
    Kansas City, Mo.
    Try posting your question on XDA Developer forum. Or a search there might find the answer already posted.
     
  3. Rush

    Rush {<>}~{<>}
    1,043

    Jan 31, 2011
    18,743
    3,162
    1,043
    Male
    Entrepreneur / Business Owner - Freelance Writer
    Loganville, GA
    Thread moved. &#12471;
     
  4. c2tarun

    c2tarun Member
    Thread Starter
    16

    Apr 4, 2012
    20
    1
    16

    I tried posting a similar thread on xda developers forum : Change android system settings by code. - xda-developers but nobody replied :(

    I tried searching in docs and found about Ringtone Manager, but when I tried to change ringtone using RingtoneManager.setActualDefaultRingtoneUri nothing happened. Need help. please reply.
     
  5. myrecek

    myrecek Active Member
    16

    May 10, 2012
    29
    2
    16
  6. c2tarun

    c2tarun Member
    Thread Starter
    16

    Apr 4, 2012
    20
    1
    16


    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
    Thread Starter
    16

    Apr 4, 2012
    20
    1
    16

    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...