NanoHTTPD File Upload in a AOSP Project

23 Views Asked by At

I am new to AOSP. I am in an Android TV project. In the project, NanoHTTPD is implemented for Web Applications. What I want to achieve is to be able to send ADB commands, upload files from the local website to the device. I want to achieve it through NanoHTTPD. I looked into NanoFileUpload.java in this link but when I imported jar files for NanoFileUpload, some imported classes couldn't be found in the jar. First I tried to implement Apache FileUpload2 but it wasn't suitable for the Java version of the project, therefore I had to use Apache FileUpload1.2, but it didn't find some of the classes like: " org.apache.commons.fileupload.UploadContext" . Are there any other libraries that I can use to upload files from my pc to the Android TV through NanoHTTPD or should I implement any other web server?

Thank you in advance.

0

There are 0 best solutions below