在笔记本电脑和Android手机之间创建wifi连接 [英] creating a wifi connectivity between a laptop and a android phone

查看:115
本文介绍了在笔记本电脑和Android手机之间创建wifi连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以在Android应用程序中帮助创建wifi网络.我只想使用wifi连接功能将专用服务器中运行的应用程序服务提供给android手机.有人可以为其解释示例代码吗?

can anyone help in creating a wifi network in android application.i just want to provide the services of an application running in a dedicated server to a android phone using wifi connectivity. can anybody explain a sample code for it?

推荐答案

wifi连接由设备处理,因此您的程序不需要知道它,除非它是打开的还是打开的.关闭.

为了使程序与外部服务器进行通信,它只需要URL和端口号即可.然后是使用的协议和数据格式.

例如,如果服务器通过Web服务提供数据,则需要使用wsdl工具生成SOAP存根,以创建表示数据对象并为您处理XML和序列化的Java类.

为了帮助您解决特定情况,需要更多信息/
The wifi connection is handled by the device so your program does not need to know about it except whether it is on or off.

For a program to communicate with an external server it only needs the URL and port numbers; and then the protocol used and the data format.

For example if the server provides the data via a web-service you need to generate SOAP stubs with wsdl tools to make Java classes that represent the data objects and handles the XML and Serialization for you.

To help in your specific case more information is required/


这篇关于在笔记本电脑和Android手机之间创建wifi连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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