So I made the NTP assumption based on seeing things scroll by in
logcat, but after digging deeper, it looks like it doesn't actually
change the system clock.  (Instead it's used for GPS somehow?)

D/GpsLocationProvider( 5839): Requesting time from NTP server
north-america.pool.ntp.org
D/InetAddress( 5839): north-america.pool.ntp.org: 66.218.191.215
(family 2, proto 6)
D/InetAddress( 5839): north-america.pool.ntp.org: 72.36.170.170
(family 2, proto 6)
D/InetAddress( 5839): north-america.pool.ntp.org: 204.15.208.61
(family 2, proto 6)
D/InetAddress( 5839): north-america.pool.ntp.org: 204.152.186.173
(family 2, proto 6)
D/InetAddress( 5839): north-america.pool.ntp.org: 66.96.96.29 (family
2, proto 6)
D/SntpClient( 5839): round trip: 363 ms
D/SntpClient( 5839): clock offset: 4603 ms
D/GpsLocationProvider( 5839): calling native_inject_time:
1244281076239 reference: 469876415 certainty: 181

j


On Tue, Jun 9, 2009 at 5:01 AM, Mark Murphy<[email protected]> wrote:
>
> Jeff Sharkey wrote:
>> So just a heads up that Android uses NITZ events provided by a carrier
>> to properly set the system date and time.  Android also falls-back to
>> network NTP automatically when no cellular network is available.
>>
>> http://en.wikipedia.org/wiki/NITZ
>>
>> The time provided by currentTimeMillis() will typically be the best
>> available time, and it's what all of the services on the device use,
>> like Calendar and Alarm Clock.
>
> Does Android fall back to NTP when there is cellular but no NITZ? NITZ
> isn't terribly widespread.
>
> Thanks!
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> Need help for your Android OSS project? http://wiki.andmob.org/hado
>
> >
>



-- 
Jeff Sharkey
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to