Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7029395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:32:01+00:00 2026-05-28T00:32:01+00:00

I want my Android device to act as a HTTP server. When I start

  • 0

I want my Android device to act as a HTTP server. When I start my server on my device it should show an IP address. When I access this device’s IP address through my desktop PC (same network), I should be able to upload files from my desktop to the Android device.

I’ve tried NanoHttpd.java but it’s hard to use and I want to use the same for downloading files as well. Is there any better solution to achieve these?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:32:01+00:00Added an answer on May 28, 2026 at 12:32 am

    NanoHTTPD is good for handling file uploads and downloads. If you want to download files use the serveFile method by extending and overriding the serve method. In order to handle uploads, check for a POST request and get the file from files parameter. You’ll get a temporary path where the uploaded file is placed. Use a FileInputStream to read the file and do whatever you want. Hope that answers your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to access my android device (Nexus S) from my pc remotely. I
I want to install the apk from android market into my android device through
Possible Duplicate: Lock the Android device programmatically I want to lock the screen through
I want to send an image from one android device to one or multiple
I want to receive an interrupt when the android device starts charging either thr
I want to live stream video from android device. I found out that ffserver
I am developin with Eclipse on an Android device. Each time I want to
I want to use a fast key-value store on an Android device where the
Problem: Consider an Android device mounted in a vehicle. We want to measure various
I'm trying to scan available wifi network through my Android device. Here's the chunk

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.