I am working on an application which will be installed on around 50 devices.
I will be getting the location of all those 50 users in every 5 minutes.
I have a small concept tell me if it's possible or not. And if possible how do i implement that?
So it goes like this we have the location co-ordinates i.e. latitude and longitude of those all 50 devices.
The tracking radius would be of 5 kms approx.
Now what i want to do is show all those devices location on the map. And if any of those devices are moving then the user must able to see the movement of that other device.
So guys any solutions?
In my opinion you must need a webserver and via using the web-services you store all the latitude and longitude onto the web-server with the unique device id. Once you got the latitude and longitude of all the devices then by using web-services just sync the data and show their location on the map. For the movement you can draw a route by refresh the web-services in every particular period of time.
You need have some backend which will keep all device location. On each device you need to have service with timer to push current location every 5 minutes and pull location of others users. I don't see any other solution for it.
For displaying you just need Google Maps.
I recommend to check this:
http://www.vogella.com/articles/AndroidGoogleMaps/article.html
And after just keep ArrayList with your marks and refresh their
location on map every 5 minutes.