简体   繁体   English

如何使用JSON从Android发送和接收数据?

[英]How to use JSON to SEND and RECEIVE data from Android?

Alright, i had enough. 好吧,我受够了。 I have seen more than 50 question and answers about JSON and i still cant understand. 我已经看到50多个有关JSON的问题和答案,但我仍然不明白。 Please solve this for me with all the codes, without any errors please. 请使用所有代码为我解决此问题,请确保没有任何错误。

Lets say i have a php script with a variable "$tablename" and another variable "$feedback". 可以说我有一个PHP脚本,其中包含一个变量“ $ tablename”和另一个变量“ $ feedback”。 According to the above variables tell me how to use JSON in my android app, to put string data to "tablename" and get the string data "feedback" from php. 根据上述变量,告诉我如何在我的Android应用程序中使用JSON, 字符串数据放入 “ tablename”并从php 获取字符串数据“ feedback”。 Make the codes understandable and please don't make any errors.! 使代码易于理解,请不要出错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM