-1

So i noticed that google maps for android has a v2. i was wondering if there is a difference between requestlocationupdate and setmylocationenabled. I want to create a service that requests user location but i know that sometimes the gps chips have issues with getting location updates so sometimes you will need to restart the phone to get them working again. Im not sure if the v2 for android maps fixes this issue or not, and if so if im creating a service to get location updates does it have to use requestlocationupdate or can it use the google map v2 version.

1 Answers1

0

setMyLocationEnabled() enables or disables the my-location layer. This layer displays the icon on the map that will centers the camera on the map to the current location of the user and displays current bearing information.

requestLocationUpdates() is part of the new Location API in the Google Play Services. It can be used independent of the new V2 Maps API.

Nic Strong
  • 6,532
  • 4
  • 35
  • 50
  • so pretty much requestLocationUpdates() is the same of SetMyLocationEnabled() other than the fact that setMyLocationEnabled() automatically puts the icon on the map for you? My main question is, do they get the gps signal at the same time if i called them both or would one get them quicker than the other, because sometimes with requestLocationUpdates() i wont get a gps signal until the phone is restarted. If that is the case is there a code that can fix this issue like a hard reset on the gps chip or does the user manually have to reset their phone? – user2492714 Jun 17 '13 at 15:46