Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

As easy as:

startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top