Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 713 Bytes

File metadata and controls

41 lines (29 loc) · 713 Bytes

WebServer

Android Web Server (with NanoHTTPD)

Image Result

Capture Project

Usage

int port = 8008;
WebServer server = new WebServer(port);

Create

package com.mikhaellopez.webserver;

import java.io.File;
import java.io.IOException;

import android.os.Environment;

public class WebServer extends NanoHTTPD
{
	public WebServer(int port) throws IOException {
		super(port, new File(Environment.getExternalStorageDirectory().getAbsolutePath()));
	}
}

Download