GithubHelp home page GithubHelp logo

android-httpserver's Introduction

Android HTTP Server

Overview

HTTP server that can run on an Android device and serve content (content from said device).

Also contains a Service wrapper that can be bound to start/stop/control the server.

(At the time this was written I looked at many small Java HTTP servers but none quite fit the bill, either due to size and dependencies, or just craziness with usage, or bugs/errors on Android, hence the existence of this.)

Created as a plain Java project (with Android jar for stubs) so that standard JVM dev/testing can be done everywhere possible (server contains no Android dependencies, just Service wrapper).

Logging

Uses SLF4J.
Plugin the correct logging implementation library at runtime to control logging.
The tests use the SLF4J "Simple" logger, which can be configured with system properties:
http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html

If you use the Java system property -Dorg.slf4j.simpleLogger.defaultLogLevel=debug, you will see debug logging, etc.

(NOTE: slf4j works fine on Android, just include slf4j-android -- auto creates log tag.)

Build

Uses Maven.
mvn eclipse:eclipse
mvn clean install
etc

Use on Android

Build it, include the JAR in libs (and include the slf4j android jar, see logging).

TODO

Android tests.
Protocol pass in.
Enhancements to server (see TODOs).

android-httpserver's People

Contributors

charliecollins avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.