Real-time tracking of Google Maps location in real time

I am working on an Android application in which players fight each on their phones in real time, depending on their location. On Google maps, you can see where you are, what direction you are, and where you are moving, all from a small blue dot. My question is: how can I integrate something like this into my application, so when the player moves, you can see it in the Google Maps fragment?

Edit: Currently, my application gives a new output every time your location is updated. I am looking for something that moves the pin and then adds a new one.

+1
source share
1 answer

I found a workaround! What I am doing now calls map.clear()and then adds new labels to the places I need ... I decided that this is best because I dynamically create new ones, and not just work with an array or with a single marker.

+1
source

All Articles