Questions tagged [nanohttpd]

NanoHttpd is a light-weight HTTP server designed for embedding in other applications. NanoHttpd has been released under a Modified BSD licence.

The first version of NanoHttpd was published in 2003. Originally, its author was looking for:

"a small enough, embeddable and easily modifiable HTTP server that I could just copy and paste into my other Java projects."

Later, another team took the project and fixed a number of bugs, moved the build to maven and pulled out the samples from the runtime JAR to further slim it down.

The two projects pooled resources in early 2013, merging code-bases, to better support the user base and reduce confusion over why two NanoHttpd projects existed.

You can view the project on GitHub: https://github.com/NanoHttpd/nanohttpd.

247 questions
0
votes
2 answers

Should httpserver run as an Android Service or as an Android application?

I have an Android Service that starts up an admin Android application at boot time. Note that I cannot do away with the app as I need it for admin interaction. The Android Service + app is the server to around 10 Android clients over a LAN…
Srikanth
  • 2,014
  • 19
  • 22
0
votes
1 answer

NanoHTTPD not showing other pages

I'm using NanoHTTPD to host a web page locally from Android. My problem is that the server responds with the index page of my site but I can't figure out how to navigate to any pages past that because it will always respond with the index…
user1056798
  • 245
  • 6
  • 20
0
votes
1 answer

On using NanoHTTPD, MediaPlayer showing Error (100,0)

I am working on a video streaming application.On a server I have secured m3u8 files.Which contains encrypted ts files (AES-128 encryption).I am parsing the secure m3u8 file then I download the ts files & decrypt them. I store all the decrypted files…
Arun Badole
  • 10,977
  • 19
  • 67
  • 96
0
votes
1 answer

understanding on code snipet IPCamera for android

Anyone please help me understand this code. this is taken from the IPCamera from android which i take from the googlecode. the code that i was trying to figure out was: public NanoHTTPD( int port, File wwwroot ) throws IOException { …
sara brown
  • 1,057
  • 8
  • 29
  • 46
-1
votes
1 answer

Why do I get messy code of chinese filename when I upload files to NanoHTTPD server in Android?

I use NanoHTTPD as web server in my Android App, I upload multiple files include chinese filename to server client using Code A. But I get the messy code of chinese filename in Code B, how can I fix the pr oblem? Thanks! Messy code screenshot Code…
HelloCW
  • 843
  • 22
  • 125
  • 310
-1
votes
4 answers

The string contain "/" can't be compared in android?

I think Method A will displays "Ok", but in fact it displays "Fails". The Method B can get the correct result "OK". I'm sure that the function fi.iki.elonen.NanoHTTPD.getMimeTypeForFile("my.css") will return the result "text/css". I don't understand…
HelloCW
  • 843
  • 22
  • 125
  • 310
-2
votes
2 answers

android change textview text based on http request

I want to make a http server in android which serve file (html/png..) also doing event based on request. Example: If request is /maketoast android make a toast or request is /chanhetext android change a specific textview text. Point is: I already…
Emran
  • 188
  • 1
  • 12
1 2 3
16
17