将android用作本地网络上的网络服务器 [英] Use android as webserver on local network

查看:64
本文介绍了将android用作本地网络上的网络服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过一些应用程序,您可以在其中打开计算机的网络浏览器,键入android设备的本地IP地址,并访问从该设备托管的主页.

Ive seen some apps where you can open your computers web-browser, type in the local IP address to the android device, and access a homepage that hosts from the device.

此应用程序的示例:手指计时器-play.google.com

有人知道这是怎么做的吗? Google是否为此提供了API,或者您可以从中获得任何示例?我不是专业的开发人员,因此我希望保持简单(很少的技术).

Does anyone know how this is done? Does Google have an API for this, or do you have any examples that I can start with? Im not a professional developer, so I prefer to keep it simple (few technologies).

我的想法是这样的:

  • 在我的设备上创建HTML或PHP页面
  • 以某种方式从我的应用程序中获取一些信息
  • 托管该页面,以便可以从本地网络上任何设备上的任何Web浏览器访问该页面.

推荐答案

我发现此页面非常好.正是我想要的.它甚至包含源代码,因此这是我可以更快学习的方式. Android开发博客 正如博主所说,它包含:"用于Android平台的最低限度的最低Web服务器".

I found this page that is amazingly good. Just what I was looking for. It even has source code, so this is how I can learn faster. Android Development Blog It contains, as the blogger says: "a bare minimum web server for android platform".

这篇关于将android用作本地网络上的网络服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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