How to serve a file on sdcard using NanoHTTPD (inside Android)
问题 I've written a small Android server using NanoHTTPD. It can serve an HTML file well (web page located at sdcard/www/index.html). Can anybody please help me find out how can I serve an audio or video file instead of an html page using NanoHTTPD? Forgive me if the question seems silly, as I'm new to HTTP! Here is my server side code (I've replaced the webpage path to that of an audio file): package com.example.zserver; import java.io.BufferedReader; import java.io.File; import java.io