Zoel Kifly
Zoel Kifly

Reputation: 11

how to receive data from server to android

I am trying to make an Android application about cars tracking using GPS.

Like this "the system is having GPS and send a data (Longitude and Latitude) to Web Server GPS, and then Web Server will send it (Latitude and Longitude) to client (android)"

My question is how the client (android) to receive packet data from server that include (longitude and latitude) to display position car in google maps (android).

Upvotes: 0

Views: 726

Answers (2)

Tugrul
Tugrul

Reputation: 1808

Try to use web service which serves location of cars or use http.

Upvotes: 0

Zsombor Erdődy-Nagy
Zsombor Erdődy-Nagy

Reputation: 16914

You could just write a web service that returns the data you need, and poll it at regular intervals. This is the easier solution.

A better one would be to use push notifications by utilizing Google's C2DM, but it's still in beta as far as I know (which is a shame, truly...). But still, it might be good enough for your needs, check it out here.

Upvotes: 1

Related Questions