如何以JSON格式将字符串从Android传输到PHP [英] How to transfer strings from Android to PHP in JSON format
本文介绍了如何以JSON格式将字符串从Android传输到PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以JSON格式将字符串从Android传输到PHP,我也想知道如何传输图像
Hi,
how to transfer strings from Android to PHP in JSON format and also i would like to know how to transfer images also
推荐答案
从Android发送字符串到PHP
您应该用PHP开发一个Web服务从Android应用程序调用。请参阅以下内容,致电邮政网络服务,将详细信息发布到终点。
http://www.wikihow.com/Execute-HTTP-POST-Requests-in-Android [ ^ ]
< b>将图像从Android发送到PHP
再次,您应该开发一个PHP的Web服务,该服务将从Android应用程序调用。请参考以下链接。
http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106 [ ^ ]
基本上你需要了解Android和PHP中的Web服务。
Sending strings from Android to PHP
You should develop a web service in PHP that will be called from Android app. Please refer the following for calling a post web service to post details to an end point.
http://www.wikihow.com/Execute-HTTP-POST-Requests-in-Android[^]
Sending images from Android to PHP
Again you should develop a web service in PHP that will be called from Android app. Please refer the following link.
http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106[^]
Basically you need to learn about web services in Android and PHP.
这篇关于如何以JSON格式将字符串从Android传输到PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文