How To Embed An Http Server (like I-jetty, Paw, Etc) In Android Application
How can I integrate an HTTP server (like iJetty, Paw, etc) in my Android application? I can't find any useful tutorial on the Internet. Most of the websites (including the official
Solution 1:
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.
Post a Comment for "How To Embed An Http Server (like I-jetty, Paw, Etc) In Android Application"