Android Question Real Time Location App

Honey Last

New Member
How can I develope App which show Real Time position of another device?

I am confuse what to store on server.

and How to show on map.
 

DonManfred

Expert
Licensed User
Longtime User
You need to track the Position(s) of each Device on your Server.
Each device must send updates when the position changes.
You need to query your Server about the (maybe updated) Position of Device X.
You can communicate with your server using okhttputils2.

and How to show on map
Start with the GoogleMaps Tutorial.
You need to Create a new Marker for Each Device you want to Track.
Hold a reference to all Markers in a Map using the DeviceID as Key and the Marker as Value).

If you later query your server about a position, get the marker from the Map and updates its Location.
 
Upvote 0
Top