Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android browser download manager

Can I use android build-in browser download manager to download files in my application?

In case of audio files, opening remote file url using Intent.ACTION_VIEW with data type "audio/*" causes browser to start playback, but I'd like to force download of specified file.

like image 388
begray Avatar asked Jan 22 '23 23:01

begray


1 Answers

The download manager is not part of the public SDK. You are welcome to download files from URLs via HttpURLConnection or HttpClient, both part of the Android SDK.

like image 160
CommonsWare Avatar answered Feb 03 '23 18:02

CommonsWare