On Thu, May 3, 2012 at 7:25 AM, Bunty syed <[email protected]> wrote:
> So i am reading time using Location.getTime
>
> But after converting millisecond returned by Location.getTime() to local
> format,I am getting the device changed time..

LocationManager is obviously using the local clock for those
timestamps. This is not surprising.

> Actually I dont want to rely on the device time since it can be changed by
> the user

Roll your own SNTP client and go get the time off the Internet.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
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