Pregunta

How do I start default phone's download manager, like the one builtin in default browser? I need to create an intent that contains url of file to download. I know it's possible, as I saw some applications doing it in the past.

¿Fue útil?

Solución

What you want is DownloadManager.

Browsing the Android source code reveals that the default browser is using this as well.

EDIT

You can browse the source code for DownloadManager here and try to use the code to make it work on 7. Bare in mind the dependencies of the class might also be not available on 7 (most probably) but it might be worth a look.

Otros consejos

As easy as:

startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top