Re: Android time
Robin Paulson <[email protected]> Thu, 01 Dec 2011 11:00:01 +1300
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 01 Dec 2011 10:43:08 +1300, David L Neil wrote: > =looking at Clocksync it seems to confirm my dim recollection that > Android time is not particularly accurate (+-30s). Arghhhh! This is > barely "accurate", even for "when's the next bus/train/TV pgm > questions"! (hence my difficulty in accepting the fact) > > =I see no mention of Clocksync having an API. Given the geo-location > component, it would be rather handy. So I'll attempt to contact the > author. (Thanks for the pointer) > > =However I realise that for this application the code could be > written so that it doesn't care which time zone the time-base uses - > just as long as the same time info is accessible by multiple sources > concurrently (and thus, consistently). > > =Obviously plain vanilla NTP will do the job. However it seems > reasonable (YMMV) that with all the time-bases available within the > GPS and cell systems that there would be a 'native' solution to time > questions... does android have gpsd available? https://en.wikipedia.org/wiki/Gpsd there's no API for it, but it provides the time over tcp/ip to other software. not that accurate given the 'best-effort' of network packets, but better than 30 seconds precision -- robin http://fu.ac.nz - Auckland's Free University _______________________________________________ NZLUG mailing list [email protected] http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug