Office Hours — Today, March 5

Thursday, March 3

Mar 5
7:20 PM
Mark M.
has entered the room
Mark M.
turned on guest access
7:30 PM
David Z.
has entered the room
Mark M.
hello, David!
how can I help you today?
David Z.
HI Mark, I've been developing an app that validates if the user is inside certain location, I have used polygon options and followed your chapter on Mapping with Maps V2 to develop de app. What I am not sure about is if is really necessary to update my app to use the Fused Location provider. I'm currently using the one you use in the chapter and I'm making all kinds of validations to see of the user has Google Play Services an has location enabled in the phone, I'm also using Google Maps util library to see if the user is inside the polygon I created in the map
7:35 PM
Mark M.
well, Maps V2 uses the fused location provider under the covers
IIRC, their APIs to tell you the user's location were deprecated, as Google would prefer that you use the fused location APIs directly
but, it's been a while since I poked around this area of Maps V2
so my memory is fuzzy
David Z.
Well, I'm not using any deprecated method to achieve the solution I'm using onLocationChanged achieve it and making the LocationManager to update the location as soon as posible
Mark M.
oh, I see
Maps V2 itself has (or perhaps "had") ways to use the location that it used internally
I thought that was what you were referring to
you are certainly welcome to continue using LocationManager if you wish
since you have already invested in getting Play Services set up (both compile-time and runtime), adding the fused location provider is easier than if you were starting from scratch
but, if you have existing working code, and you do not feel you need the fused location provider, you should be fine
7:40 PM
David Z.
Thanks, it had been troubling me for a while! Also, I was wondering if you have a section in your book that talks about sessions, like logging in and out to an app and that stuff
Mark M.
no, sorry
David Z.
Oh, ok. Well, thanks for everything
Mark M.
you are very welcome!
David Z.
has left the room
8:25 PM
Mark M.
turned off guest access

Thursday, March 3

 

Office Hours

People in this transcript

  • David Zarate
  • Mark Murphy