The purpose of this app is exactly what are you mentioned, but over the cell network it is not possible to retrive current time, so i implement the SMTP protocol for reguesting exactly network time from a SNTP server.
therefore, thanks for your answer, obviously i have to wait for a really hardware for testing :))) cheers, vitali On Mar 27, 5:24 pm, hackbod <[EMAIL PROTECTED]> wrote: > This may not be supported in the emulator... but regardless, please > don't do this. The phone will keep the clock updated from information > on the cell network. > > On Mar 27, 2:44 am, vitali <[EMAIL PROTECTED]> wrote: > > > Hello, > > > i try to set current system time like this: > > > long systime = System.currentTimeMillis(); > > SystemClock.setCurrentTimeMillis( systime ); > > > but it fails with "Invalide argument" error code: > > > DEBUG/SystemClock(601): Setting time of day to sec=1206516077 > > WARN/SystemClock(601): Unable to set rtc to 1206516077: Invalid > > argument > > > According to API description for > > android.os.SystemClock.setCurrentTimeMillis > > the calling process requires appropriate permitions, may be it is a > > problem ? > > > How can i gain that permition ? > > > Any ideas ? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

