I fix it with <uses-permission android:name="android.permission.WRITE_SETTINGS"></ uses-permission>
in manifest file. On Oct 15, 9:15 pm, Hao <reade...@gmail.com> wrote: > I am trying to use android.provider.Settings.System.getInt and putInt > to enable and disable network time as follows: > > android.provider.Settings.System.putInt(getContentResolver(), > android.provider.Settings.System.AUTO_TIME, 1); > > However this does not seem to be working, does anyone have some advice > on how I should do this? I am using SDK 1.6. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---