249 questions
1 vote
0 answers
209 views
NanoHTTPD server on Embedded Android TV: HTTP works but HTTPS shows blank page after authentication
I’m working on an embedded Android TV project. I’m using NanoHTTPD as the web server. The server hosts a simple web page that can be accessed from a browser by entering the IP address of the TV. Here’...
-1 votes
1 answer
82 views
java.net.SocketException - NanoHTTPD (https) - Android
I'm stuck and looked everywhere to find a solution but I think it won't be as effective as getting help from humans haha. I set up a NanoHTTPD server to listen to https post requests: public ...
0 votes
0 answers
86 views
NanoHTTPD Timeout Error while Uploading File to the Android Device
I am new to AOSP. NanoHttpd is implemented for web part of the project. I want to upload file from a Javascript page which is hosted on the Android device and then I want to get this uploaded file to ...
0 votes
1 answer
25 views
How to run NanoHttp daemon as OS service on MacOS?
I have a custom application made with nanohttp daemon to control a local printer using a rest API. I could make its OS service installer for Windows using Apache commons daemon, but I'm stuck while ...
0 votes
1 answer
466 views
Using ajax to send back JSON to Android nanoHTTPd function
Hey all I am trying to POST some json data to my android app via Jquery AJAX and using NanoHTTPd as the web server. I can seem to call the correct url doing this: var reqData = JSON.stringify({"...
0 votes
2 answers
1k views
Streaming byteArray video in Android
How can I stream video from byteArray fun streamVideoListener(frame: ByteArray){ // receiving H.264 frames every 100ms. } I tried FFmpeg library. merged 100 frames and make few seconds video ...
0 votes
0 answers
98 views
Can not bind the domain to AWS EC2
I use EC2. So far I have been using Elastic IP to get a static IP. And I was able to bind the Htttp server to an AWS prepared domain like ec2-xx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com and ...
1 vote
0 answers
1k views
Android: how to run a complex website on local http server? (with nanohttpd or equivalent)
I want my Android app to execute a complex website on a local http server directly on the phone. For that, I implemented nanohttpd. With this library, I can run locally on my phone on a http server ...
0 votes
0 answers
143 views
NanoHTTPD Android Library for Serving webpage for youtube playback
i am trying to play a youtube video in android through NanoHTTPD android web server library using a html form by providing the youtube id of some video in the served html file into the html form. So ...
0 votes
0 answers
2k views
Cannot invoke "java.io.InputStream.readAllBytes()" because the return value of "java.lang.Class.getResourceAsStream(String)" is null
I use NanoHTTP to set up a web server with HTML, JS and some Java. Now I want to get the JavaScript resource out of the HTML by using private String readFileAsTextUsingInputStream(String filename) { ...
0 votes
0 answers
390 views
Cannot resolve symbol 'NanoHTTPD'
I am trying to build NanoHTTPD into my project. I didn't find a solution in the other "Cannot resolve symbol" question on StackOverflow so I am trying this here I am sorry. This is a pretty ...
2 votes
0 answers
284 views
How to start play .mkv and .mp4 videos on Mi Video using NanoHttpd without reading the entire file (Android)
I'm using NanoHttpd library in order to serve video files of type .mkv and .mp4 on Mi Video. As the reading of the input stream was too slow, I changed NanoHttpd's reading buffer size to 1M: private ...
0 votes
1 answer
149 views
How download an installed app with nanohttpd
Hello i want to make a http server with nanohttpd that shows installed apps, and convert them to apk and download. I can list but how can i download the app i select List<ApplicationInfo> ...
0 votes
1 answer
134 views
Download Excel file from Nano httpd web server
I have an excel file in my Android phone whereby i want to download this file by Nano Httpd web server,I am reading excel content and return as a Nanohttpd's response : File excelDirectory = new File(...
0 votes
0 answers
104 views
Sharing files with nanohttpd in android
i need to develop an android app, a chat app, in which the two devices should be connected via wifi direct and share files via nanohttpd. can anyone share a guide for this ?