Android客户端服务器应用程序 [英] Android client server application

查看:170
本文介绍了Android客户端服务器应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Android应用程序应该通过服务器进行身份验证。我怎样才能code客户端端和服务器端,使这个可能吗?

在服务器端,我应该怎么用做脚本怎么样?

流程应该是这样的:


  1. 用户输入它的Andr​​oid应用程序屏幕上的用户名和密码。

  2. 这些精氨酸走到哪里,他们进行身份验证和响应返回给Android应用程序服务器。


解决方案
对于客户端发送JSON格式的请求(键值对)


和服务器端(您可以使用PHP或servlet),并发送响应,以JSON格式

Pleaes参考此链接

  http://www.androidhive.info/2012/01/android-json-parsing-tutorial/

I want to create an android app which should be authenticated through the server. How can I code both client side and server side to make this possible ?

On the server side what should I use to do scripting and how ?

Flow should be like this:

  1. User enters it's username and password on the android app screen.
  2. These arg go to server where they are authenticated and response is returned to the android app.

解决方案

For client side you send your request in json format(key value pair) and for server side (you can use either php or servlet ) and send the response ,in json format

Pleaes refer this link

http://www.androidhive.info/2012/01/android-json-parsing-tutorial/

这篇关于Android客户端服务器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆