Android (Java) Simple Send and receive with Server - Fast Setup Challenge

后端 未结 4 1887
借酒劲吻你
借酒劲吻你 2020-11-29 20:30

I\'m writing an Android App and I\'m looking for the fastest (In terms of setup) way for me to send data to a server and receive information back on request.

We\'re

4条回答
  •  鱼传尺愫
    2020-11-29 21:16

    The easiest solution for you would be to use the apache http client to get and post JSON requests to a php server.

    The android already has a JSON builder/parser built-in, as does PHP5, so integration is trivial, and a lot easier than using its XML/Socket counterparts.

    If you want examples of how to do this the android side of things, here is a twitter API that basically communicates with twitter via their JSON rest API.

提交回复
热议问题