Can I update an Android provider.Settings.System value?

Posted by Mr_Ed on Stack Overflow See other posts from Stack Overflow or by Mr_Ed
Published on 2010-03-28T07:24:15Z Indexed on 2010/03/28 7:33 UTC
Read the original article Hit count: 163

Filed under:

I can read settings like this, for example:

final String mytest = System.getString(this.getContentResolver(), System.AIRPLANE_MODE_ON);

...but can't seem to write to settings using putString, no matter what I've tried. Maybe it is the scope of this.getContentResolver()??? I'm a newbie, so who knows, maybe it can't be done, or it's just syntax? Currently the code is in the onCreate of an Activity class.

Any insight is much appreciated.

© Stack Overflow or respective owner

Related posts about android