Setting the system time from GPS?

by Hadmut » Tue, 08 Mar 2011 05:57:39 GMT

Sponsored Links

I have a Motorola Milestone  (european version of the Droid). The
internal clock of my device is terribly unprecise, need to adjust it
every now and then.

Ironically, the device has a builtin GPS receiver, and thus always the
precise time. Why doesn't android use the GPS signal to adjust it's
internal clock?

(I have a rather old-fashioned navigation system in my car, that can't
compete with android, but continuosly sets the clock of my car to the
GPS time, so my car always has the accurate time.)



Re: Setting the system time from GPS?

by Craig Mitchell » Tue, 08 Mar 2011 06:51:19 GMT

 You should always have the accurate time based on the mobile network

Settings -> Date & Time -> Select "Automatic".

This takes into account daylight savings and things like that.


Sponsored Links

Re: Setting the system time from GPS?

by liuyu » Tue, 08 Mar 2011 09:27:50 GMT

 Hi, Hadmut,

GPS consumes a lot battery power and only works at outdoor.
Regular user would not always keep GPS on to sync the time.
I think this is why android uses the mobile network instead of GPS to
sync the time.
Besides, if you can't get accurate time from your mobile network,
you'd better check whether your network providers time synchronization


Re: Re: Setting the system time from GPS?

by Disconnect » Tue, 08 Mar 2011 22:57:06 GMT

 FWIW (at least a couple years ago) cell time is remarkably broken on
tmobile, periodically being as much as 15 mins off or sending down the wrong
time zone entirely.

I believe the android 'network' time sync actually uses ntp, so it is almost
as accurate as taking the gps clocks (and a lot easier on battery.)


Other Threads

1. PNG Decoder loading RGB_565 on 24 bit PNGs with alpha - then settings bitmap.config to null?? wtf

I've been dealing with this issue for some time but it's really
causing me problems today.

Here's what I'm doing:

BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inScaled = false;
return BitmapFactory.decodeResource(context.getResources(),
resourceId, opts);

And on many PNGs exported from Photoshop using "save for web and
devices" which is the optimized way to do it, I get a Bitmap that
should be ARGB_8888 but ends up as RGB_565.  Not only that but
Bitmap.getConfig() returns null on those, as if it didn't know what
format it put it in.

Gosh that seems buggy!

Anyone have a good workaround for this which allows for loading
unscaled bitmaps in their correct format (with transparency?)


2. OpenCore / Possible Issue w/ Streaming MP3 over HTTP?


I was able to reproduce the problem, and it is definitely timing
dependent. For the eclair codebase, I found a problem in OpenCORE's
mp3 parser node. That, however, has been fixed on the latest codebase
available at

Now, for applications that are being written for existing Android SDK
releases, I don't have a way out yet.



3. Hardware platform thoughts

4. Sound question

5. Perjuangan seorang mahasuhu

6. Bajak Thread

7. ScrollView with EditText - Scrolling in EditText Issue