客户端服务器连接 [英] client server connection
本文介绍了客户端服务器连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试开发一个android应用程序(客户端).我的应用程序使用ksoap2连接与服务器连接.在我的服务器端,我需要确定哪个移动用户正在使用该应用程序.而且我需要使用唯一的用户ID保留数据.
有什么想法可以收集任何唯一的用户信息,例如IME no或请求ID等.
i am trying to develop a android application(client side). my application use ksoap2 connection to connect with server. in my server side i need to identify which mobile user use the application. and i need to keep data with unique user id.
is there any idea to collect any unique user info like IME no, or request id etc.
how can i identify which user send the request to server.??
推荐答案
每个电话都有唯一的mac地址,您可以使用该地址...
您将获得很多代码来查找电话的mac地址...
和我要制作灵活的uid的情况...您必须在数据库中自动增加uid并通过传递参数来使用它..
Every phone has there unique mac address , you can use that address...
you will get lots of code to find mac address of phone...
and i case of to make flexible uid...you have to auto increment the uid in database and work with it by passing params..
这篇关于客户端服务器连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文