Using NanoHTTPD in Android

A late answer but may be useful to others. Here is a simple hello Web Server, not exactly what you ask, but you can continue from here. The following program supposes you have a www directory in the root of the SD Card and a file index.html inside. Main activity Httpd.java: package com.inforscience.web; import android.app.Activity; … Read more