Skip to content

<10> Webpage Server

Petar Petrov edited this page Jan 16, 2015 · 1 revision

Flyver SDK allows you to serve a webpage directly from your smartphone.

To do so, you must put all your webpage files(.html, .css, .js, images) in the FlyverCore/src/main/assets/webpage/ folder(only plain files, folder structure is not supported for now) and the page will be served on the device's IP address. The files in this folder are deployed automatically with the .apk of the application

The HTTP server used for this is NanoHTTPD, which is subclassed in utils/java/co.flyver.utils/NanoHTTPDServer, which implements its serve method