如何在JSON android中保存值服务器

时间:2013-04-30 10:21:46

标签: android json

http://www.slicapp.com/slic/edit_profile.php?message=[{&email1=arun&email2=gggg&email3=gg&facebook=ffg&twitter=ddgg&gplus=ffdd&youtube=fdd&linkedin=gff&instagram=gfg&tumblr=aa}] 

我必须通过点击保存按钮在服务器上传数据如何在android

中执行此操作

我是新人,需要紧急

1 个答案:

答案 0 :(得分:1)

在Android应用程序中,您需要执行以下操作:

  • 使用值
  • 构建JSONObject
  • 通过HttpPost发送给您的服务器

在您的服务器上,您需要一个php文件,它将接收此对象,解析它并将值插入到sql数据库中。让php代码和android代码一样重要。

如果你谷歌这个,你会得到很多教程。我现在用Google搜索的前几个结果中的一些是: http://androidforums.com/application-development/297822-sending-json-server.html http://www.codeproject.com/Articles/267023/Send-and-receive-json-between-android-and-php

多次提出类似的问题。看看这个:Send data from android to server via JSON