Location:getTime() is a long value, representing milliseconds since 1/1/1970
All of these values are usually updated every 1 second, the lat and lon values change even when stationary due to 'jitter' in the computed values. See https://developer.android.com/reference/android/location/Location.html On Wednesday, May 25, 2016 at 12:05:09 AM UTC+10, durgadevi1 wrote: > > Hello members, > > I'm creating a GPS tracker app. > > I have used these few attributes: > > 1) Location:getTime() > 2) Location:getLatitude() > 3) Location:getLongitude() > > I managed to see the outputs on my app screen. But I noticed the values > keep changing on the app screen. > Why do the values keep changing? > > Also, for Location.getTime() I get a large number as a output. Sometimes > the number is negative. (eg -2122202741) > What does the large number represent and what format does it represent? > > Thank you. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/3b694740-df76-4f06-9421-0bb5ed5c67d7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.