Ok, what I am trying to do is: 1) Start my application, the users selects a certain area in a map 2) The user closes the application 3) I want to be notified when the user enters/leave that certain area
By reading http://developer.android.com/guide/topics/location/obtaining-user-location.html I guess I'll have to create a service ( or whatever I need to do in Android that allows my classes to run in background, while the application has exited), and then request to be updated about the user location, and then do some math to see if the user is actually inside or outside my pre-determined area, and then issue the proper feedback to the user. Does that make sense? I figured that out since I couldn't find any "region/area delimiter class" in the mentioned documentation. att, Victor Lima On Nov 23, 3:10 pm, Brad Gies <[email protected]> wrote: > You can request location updates within a pre-defined area, or at > pre-defined times which can be used for geo-fencing... Not sure exactly > what you need to accomplish so it's tough to suggest much more than > reading the " request Location Updates " documentation. > > Sincerely, > > Brad Gies > ----------------------------------------------------------------------- > Bistro Bot - Bistro Blurbhttp://bgies.com > http://nocrappyapps.comhttp://bistroblurb.com > http://forcethetruth.comhttp://ihottonight.com > ----------------------------------------------------------------------- > Everything in moderation, including abstinence (paraphrased) > > Every person is born with a brain... Those who use it well are the successful > happy ones - Brad Gies > > Adversity can make or break you... It's your choice... Choose wisely - Brad > Gies > > Never doubt that a small group of thoughtful, committed people can > change the world. Indeed. It is the only thing that ever has - Margaret Mead > > On 17/11/2010 2:20 PM, ip332 wrote: > > > > > As you know, location updates are requested from LocationProvider. > > If you use NetworkProvider then GPS is not turned on. > > The rest is in technical details which you should get from the > > documentation (probably iPhone does it all by itself but in case of > > Android some technical boring reading is required ;) > >http://developer.android.com/reference/android/location/LocationManag... > > > On Nov 17, 11:36 am, victor lima<[email protected]> wrote: > >>http://en.wikipedia.org/wiki/Geofence > > >> How would I go about doing a geofence characteristic in my android > >> app? I dont want to be pooling the GPS hardware for location, and then > >> making some calculations to see if the current lat/lng location is > >> inside ( or not ) a delimited area. On iPhone ( dont know if I can > >> mention iphone here ;)) I can use some system API to notify me upon > >> entering/leaving a certain region that I had pre-determined in my > >> app... Is there anything that relates to that? How does android apps > >> do it? ;) > > >> Thanks in advance, > >> Victor Lima -- 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

