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

  • Home
  • SEARCH
  • 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 8941245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:15:23+00:00 2026-06-15T11:15:23+00:00

I want to my app that can download multiple files simultaneously and show process

  • 0

I want to my app that can download multiple files simultaneously and show process of download each file in the notification area
How can I do this?Now I can show only 1 process bar when I download files.
Here file notification_progress_layout.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" 
android:layout_height="fill_parent"
android:padding="5dp">
<ImageView android:id="@+id/status_icon"
    android:layout_width="wrap_content" 
    android:layout_height="fill_parent"
    android:layout_alignParentLeft="true" 
    android:layout_marginRight="10dp"
    android:src="@drawable/icon_download1"/>

<RelativeLayout android:layout_width="fill_parent"
    android:layout_height="fill_parent" 
    android:layout_toRightOf="@id/status_icon">

    <TextView android:id="@+id/status_text" 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
        android:layout_alignParentTop="true" 
        />
    <ProgressBar android:id="@+id/status_progress"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content"
        android:layout_below="@id/status_text"
        android:indeterminate="false" 
        android:indeterminateOnly="false"
        style="?android:attr/progressBarStyleHorizontal"  />


</RelativeLayout>

and nofitication file

        Intent notificationIntent = new Intent();
        PendingIntent contentIntent = PendingIntent.getActivity(activity, 0, notificationIntent, 0);
        notificationManager = (NotificationManager) activity.getSystemService(Context.NOTIFICATION_SERVICE);
        notification = new Notification(R.drawable.icon_download1, "Downloading...", System.currentTimeMillis());

        contentView = new RemoteViews(activity.getPackageName(), R.layout.notification_progress_layout);
        contentView.setProgressBar(R.id.status_progress, 100, 0, false);        
        contentView.setTextViewText(R.id.status_text,"Downloading...");  

        notification.flags = notification.flags| Notification.FLAG_ONGOING_EVENT;
        notification.contentView = contentView;         
        notification.contentIntent = contentIntent;

        notificationManager.notify(NOTIFICATION_ID,notification);
  • 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-15T11:15:25+00:00Added an answer on June 15, 2026 at 11:15 am

    Do like this:

    1. create a default XML with a LinearLayout inside.
    2. create another layout with a ProgressBar inside.
    3. use the following code.

    Code:

    contentView = new RemoteViews(activity.getPackageName(), R.layout.notification_progress_main);
    for (i=0; i<downloads.length;i++){
       contentView2 = new RemoteViews(activity.getPackageName(), R.layout.notification_progress_layout);
       contentView2.setProgressBar(R.id.status_progress, 100, 0, false); 
       contentView.addView(R.layout.linearid, contentView2);
    
    }
    notification.contentView = contentView;
    notificationManager.notify(NOTIFICATION_ID,notification);
    

    Change progressBar values with correct values for each downloads.

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

Sidebar

Related Questions

I'm making a android library app that can download and show special files. now
I want to restrict my web app so that .txt files can not be
Let say I want to create an iOS app that download music files from
I am creating an iPhone app and in that I want to download multiple
I want to develop an app that can download a load of data at
I want to know if i can develop an app that would download books
I want to create an App that can share files between other iOS devices
I have an app that downloads ZIP files from my server, and can download
I want to make an app that can receive broadcast when other apps on
I want to create an Android app that can be used on 2.3.3 all

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.