Monday, October 18, 2010

[android-developers] Re: Location API. Detecting proximity to a given point

Wow, that's great!

I missed those docs.

Thank you.

On Oct 18, 10:45 am, Filip Havlicek <havlicek.fi...@gmail.com> wrote:
> Hi Hatch,
>
> you can always try thishttp://developer.android.com/reference/android/location/LocationManag...,
> double, float, long, android.app.PendingIntent) although I'm not sure about
> battery consumption compared to your proposed method.
>
> Best regards,
> Filip Havlicek
>
> 2010/10/18 Hatch <tomislav.hecimo...@gmail.com>
>
>
>
> > Hi all.
>
> > I would like to 'be notified' when the user enters a given range of
> > certain Geo point(s).
>
> > For instance, one point could be School. When User is within 500m of
> > the School he would get a notification (for example.)
>
> > Is this the way to go:
>
> > 1) Turn on LocationListener in a background service and ask for
> > location update every 5 minutes (is that a lot?)
> > on location update:
> > 2) check whether new location is better than the last one
> > 3) calculate distance of current location and School location.
> > 4) if within range: do something.
>
> > Am I transgressing something with such design ?
>
> > The Idea is to have a kind of a 'proximity sensor' to certain
> > predefined points.
>
> > Thank you.
>
> > --
> > 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+unsubscribe@googlegroups.com<android-developers%2Bunsubs cribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate