Start a Project

How we download File from URL in android

There are many methods to download files from the server.

  1. Use android.permission.WAKE_LOCK AsyncTask
  2. Download From service by adding <service android:name=“.DownloadService”/>
  3. Use DownLoadManager class and many others.

I am discussing with DownLoadManager, it is applied on the GingerBread or above version of applications.

GingerBread brought a new feature, DownloadManager, which allows you to download files easily and delegate the hard work of handling threads, streams, etc. to the system.

Find alert message when File has downloaded-

 

Reference: http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog

Exit mobile version