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 8266857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:18:42+00:00 2026-06-08T05:18:42+00:00

I can use the android downloader to download files. and the code is Here

  • 0

I can use the android downloader to download files. and the code is Here

By default android stores the files in download directory. How can I specify the path where it should be downloaded? If this is not possible, I plan to copy the file in sd card and I want to delete the src file(the file in the download folder. But I am unable to delete the file from the download folder. How can I achieve it?

  • 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-06-08T05:18:44+00:00Added an answer on June 8, 2026 at 5:18 am

    setDestinationInExternalPublicDir

    DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
        Request request = new Request(
                Uri.parse("url for file to download"));
        request.setDestinationInExternalPublicDir (String dirType, String subPath);
        long enqueue = dm.enqueue(request);
    

    this method may help you!

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

Sidebar

Related Questions

I want to use this project: http://developer.android.com/resources/samples/ActionBarCompat/index.html How can I download all files at
I want to use com.google.android.maps.MapView, but can't figure out how to download the library
http://code.google.com/p/apps-for-android/ I have eclipse setup with Subversive plugin, I can download the codes down
I have downloaded kankan's wheel widget as an *.apk from here http://code.google.com/p/android-wheel/downloads/list and then
How can I use a different Android sdk and resolution simulator with testing use
I have an android.graphics.bitmap and an android.net.Uri both of these I can use anyway
How can we use Web services in Android Applications?
I can not use content://sms? Works on all Android devices? I'm using SmsManager but
R class on android has it's limitations. You can't use the resources dynamically for
The documentation ( http://developer.android.com/guide/topics/manifest/manifest-element.html#uid ) only states I can't use raw strings and the

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.