I am using a MapView to display the current position of the user. The user is supposed to be able to move around and a blue line corresponding to his/her path will be displayed.
I am using the getCurrentLocation() function to get the location every 5 secs and then update the path on the map using a polyline.
My question is what is the best way (resources wise) to get the location considering that the MapView is already active and has the location of the device.
Should I be using -
- getLastLocation()
- getCurrentLocation() itself
- getMyLocation() (deprecated) that can be called directly on my GoogleMap object