I did it this way so the receiver will not be running the whole time. I
don't need constant updates only when it is requested. I am also using the
method you suggested in other areas. Thanks to everyone who submitted!

On Fri, Jan 15, 2010 at 12:16 AM, Kumar Bibek <coomar....@gmail.com> wrote:

> Why would you do that? While registering for location changes, you
> have an option to specify the time interval, and the displacement, so
> that only when these values are exceeded, the GPS provider will be
> updated.
>
> Have a look at the requestLocationUpdates method for LocationManager.
>
> Kumar Bibek
>
> On Jan 15, 2:13 am, Tommy Hartz <droi...@gmail.com> wrote:
> > Ah found my answer I need to use currentTimeMillis
> >
> > On Thu, Jan 14, 2010 at 3:49 PM, Tommy Hartz <droi...@gmail.com> 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 <mmur...@commonsware.com
> >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 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.html.
> ..
> >
> > >> --
> > >> Mark Murphy (a Commons Guy)
> > >>http://commonsware.com|http://twitter.com/commonsguy
> >
> > >> _Android Programming Tutorials_ Version 1.1 Available!
> >
> > >> --
> > >> 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 group, send email to
> > >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> <android-developers%2bunsubscr...@googlegroups.com<android-developers%252bunsubscr...@googlegroups.com>
> >
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
>
> --
> 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 group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
-- 
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to