Android 和 Windows 7 之间的连接
我想做安卓应用。服务器使用windows,客户端是android。应用程序从android发送消息到服务器,服务器将该消息保存到sql。在android中,我想查看发送给我的消息。您有任何从android发送消息到服务器的示例吗?
I want to do android application. using windows server and client is android. application send to message from android to server and server save that message to sql.in android i want to see message to which come to me.have you got any example for sending messege to server from android.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的问题很广泛。您没有指定要使用哪种语言对服务器进行编程。
首先,您应该创建简单的 Android TCP 客户端和简单的 TCP 服务器。
看看这个线程:
Android (Java) 网络编程资源,
http://www.anddev.org/socket_programming-t325.html 获取基本信息有关主题的信息。
Your question is very broad. You did not specify with what language you want to program your server.
As a start you should create simple Android TCP Client and simple TCP server.
Look at this threads:
Android (Java) network programming resources,
http://www.anddev.org/socket_programming-t325.html to get basic information on topic.
您似乎还不知道如何建立联系。如果我错了,请原谅我,但这可能意味着您不是一个真正有经验的程序员,并且您在这里的问题意味着某种时间压力,或者至少不愿意深入研究材料。
因此,我建议您采用“简单”路线,这可能不是在所有情况下都是最有效的,但对于许多事情来说足够有用。
这两个步骤作为一个概念都很容易理解,如果您了解该方法,您可以更容易地找到方法和原因。
这里没有真正的收获。
You seem to have no Idea (yet) as how to make a connection. Forgive me if I'm wrong, but that might mean you are not a really experienced programmer, and your question here implies some sort of time-pressure or at least not the willingness to dive too deeply into the material.
Therefore I'd suggest you take the 'easy' route, that might not be the most efficient in all cases, but would be usefull enough for a number of things.
Both of these steps are easy to graps as a concept, and you can find the how and why a lot easier if you understand the method.
No real catches here.