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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:09:51+00:00 2026-05-13T17:09:51+00:00

cause the android build in downloadmanager is not reachable by sdk applications i have

  • 0

cause the android build in downloadmanager is not reachable by sdk applications i have to implement one by myself. Before starting i want to get feedback how to make it the best way. So here we go:

Requirements:

basic:
Listview with one download per row
button to cancel active downloads
progress view of the downloads
(and so on)
(no questions so far)

I have to reach the downloadmanager from my main activity, start a download -> change to downloadmanager activity and then change back to the main activity but the downloadactivity should stay in the background downloading.

So whats the best way implementing this? Is it possible to keep an activity active in the background, then i could use asynctask to download the files. If not, is it better to use a service and reach that service by the downloadmanager activity so i can close the activity while downloading.

Would be nice to get some input from the experts cause i’m still a beginner.

Thank you

  • 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-13T17:09:51+00:00Added an answer on May 13, 2026 at 5:09 pm

    I would recommend that you use a Service rather than an AsyncTask to do your downloading. It is not possible to keep Activity “active in the background”; this is precisely what a Service is for.

    Your Activity would bind to the Service and could poll it using an AIDL interface to determine the progress of the downloads.

    If you’re going to write a Service this blog post on how the Services API changed in Android 2.0 will probably be pretty helpful.

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

Sidebar

Related Questions

I have build an android application in which I've integrated faceboook using the facebook-sdk
I have recently updated my app to a build tarket of SDK version 8
I am working on Android SDK-NDK and have a problem with the following piece
I have an android app and I want to show japanese kanji on it,
I want to select a LocationProvider that is enabled in Android. The project build
I can not find any related layout implementation in android build in layouts. I
I'm trying to build something with the Android NDK standalone compiler toolchain, but I'm
I am trying to build an android application. The application requires android 2.2 and
I have an Android App which consists on different modules. The Main module is
I am one step away from making the method described here: Targeting Android with

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.