Downloading from website with Request/Intent

101 Views Asked by At

I am making an app that will connect to a website and download an mp3 file.

Can you use intents along with a HttpUrlConnection/jsoup request (or is another way to accomplish this?) I am planning on using Jsoup to connect to this site, pass the url parameter, and somehow initiate the download (not sure how to acquire necessary url). I'm not sure how to implement this. I'd like to avoid using a webview to accomplish this, though that would be easy.

1

There are 1 best solutions below

1
On

If you just want to download an mp3 file with a URL from the web, you could use the built-in download manager of android.

See #3 answer of this

It's easy to implement and works well.