Android Client Server communication

后端 未结 2 1433
一生所求
一生所求 2021-01-01 23:18

I have an application in Android which get latitude and longitude from GPS. I want to send these lat and long to server at particular port and want to receive the response o

2条回答
  •  半阙折子戏
    2021-01-01 23:28

    If you want to upload some information to web server, simple way is to use GET method in your web server part. you may pass two parameter latitude + longitude to server.

    Second thing is to communicate with server to mobile device. Better way is to use JSON format to communicate between them. Try to understand the JSON format and implement it.

提交回复
热议问题