Nathan Bird Nathan Bird - 1 year ago 107
Android Question

Android real-time Google Maps location tracking

I am working on an Android app where players battle each on their phones in real-time based on their location. On Google maps, you can see where you are, in what direction you are facing, and where you are moving, all from a little blue dot. My question is: How can I integrate something like that in my app, so when the player moves, you can see it on the Google Maps fragment?

Edit: Currently, my application drops a new pin every time your location updates. I'm looking for something that moves the pin rather then adding a new one.

Answer Source

I found a temporary solution! What I'm doing now is calling map.clear(), and then adding new markers to the places I need... I decided this was best because I am dynamically creating new ones, and not just working with an array, or single marker.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download