Click here to Skip to main content
15,881,882 members
Articles / Mobile Apps / Android

Downloading multiple files using AsyncTask in Android

Rate me:
Please Sign up or sign in to vote.
4.22/5 (8 votes)
1 Dec 2011Eclipse 61.8K   3.9K   24  
This article teaches you how to download multiple files using progressBar, Notification, and AsyncTask.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="horizontal"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:padding="3dp"
              >
    <TextView android:id="@+id/text"
       android:layout_width="wrap_content"
       android:layout_height="fill_parent"
       android:textColor="#000"
    />
    <ProgressBar 
        android:id="@+id/progressBar"
        android:layout_width="fill_parent"
    />
</LinearLayout>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Eclipse Public License 1.0


Written By
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions