The idea is to create an ArrayList of locations and every time I save the location data in that list in the same time I draw a polyline between each two points. 
My question is about the Google Maps method onLocationChanged(). I want to know if it is called automatically, I mean every time the location change, or if it is called when the user click on the button of get current location?
If someone has a better idea please let me know?
 
     
     
    