Pergunta

I need to create some kind of the Download Manager to load a lot of files by the URLs and save them on the SD Card. I found in the android sdk two classes that as I think can help me in this case:

  1. android.app.DownloadManager
  2. android.net.Downloads

Maybe someone used them and can share his experience what is better or maybe there is a better external solution?

Thanks in advance for any help.

Foi útil?

Solução

You can also use the system's DownloadManager.

 DownloadManager mgr = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);

Posting a DownloadManager.Request to this service results in the download appearing in the notification area.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top