Re: [android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy Hartz
Ah found my answer I need to use currentTimeMillis On Thu, Jan 14, 2010 at 3:49 PM, Tommy Hartz wrote: > Hmm ok so how would you subtract the current time from that time to see if > it is greater than say 20 minutes? > > On Thu, Jan 14, 2010 at 3:45 PM, Mark Murphy wrote: > >> Tommy wrote: >> >

Re: [android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy Hartz
Hmm ok so how would you subtract the current time from that time to see if it is greater than say 20 minutes? On Thu, Jan 14, 2010 at 3:45 PM, Mark Murphy wrote: > Tommy wrote: > > Hey devs, > > > > Is there a way to get the time or date stamp of the last time the GPS > > was updated? > > Call ge

Re: [android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Mark Murphy
Tommy wrote: > Hey devs, > > Is there a way to get the time or date stamp of the last time the GPS > was updated? Call getTime() on the Location object. "Returns the UTC time of this fix, in milliseconds since January 1, 1970. " http://developer.android.com/reference/android/location/Location.ht

[android-developers] LocationManager.getLastKnownLocation Question

2010-01-14 Thread Tommy
Hey devs, Is there a way to get the time or date stamp of the last time the GPS was updated? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this g