drvxclagw656708070 2015-11-28 07:49
浏览 57

如何从PhP服务器Android应用程序获取JsonArray?

Hi I have php code to encode an array and I want my android app to receive the array and store to the local variable

php code on server side:

echo json_encode(array('result'=>$result));

how to make android to receive the array from server. I'm thinking of using Volley libray but dont know how to implement

should be something like:

ArrayList eventdetail = repond(url...)
  • 写回答

2条回答 默认 最新

  • dongmi4927 2015-11-28 08:06
    关注

    I Believe you need time to research. Seems like you have just started.

    Their are lot of ways to do this.

    You can use Rest API's or SOAP API's whichever you feel like. or You can build your own http client on android to request and recieve data from web server.

    all the best.

    For SOAP you can use Ksoap2

    For implementing Volley this is the best source.

    评论

报告相同问题?

悬赏问题

  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败