How to embed an Http server (like i-Jetty, Paw, etc) in android application

穿精又带淫゛_ 提交于 2019-12-02 22:20:34

Here's one I have successfully used:

NanoHttpd

NanoHttpd is an open-source, small-footprint web server that is suitable for embedding in applications, written in the Java programming language. The source code consists of a single .java file.

And here is an Android sample project that uses it:

https://gist.github.com/komamitsu/1893396

It's very small and simple and in pure java but it is fairly modifiable. There are others but they are a bit more heavyweight. Depends what you want to do. I would recommend you start small and see if that suits your purposes.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!