I tried, but still not work. I also found someone met the same problem long long ago in v0.9, and google experts answers:
********************************************************************************** User apps cannot set the time. Only the system processes can. This is for security, but also because it won't have much effect--the time is reset from the radio via network time. ********************************************************************************** So, is there another way to do this except let the application run as system process? Thanks. On Jun 26, 2:18 am, "Mr.No" <f.hi...@arcor.de> wrote: > Try this permission: > android.permission.WRITE_SETTINGS > > On 25 Jun., 13:26, hunter <jun.hun...@gmail.com> wrote: > > > Hi, all: > > I want to set system clock by SystemClock.setCurrentTimeMillis, but > > met following error: > > > W/SystemClock( 1287): Unable to open alarm driver: Permission denied > > > So, can someone tell me which permission I should acquire and how > > to acquire it? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---