1. Are you ready for the Galaxy S20? Here is everything we know so far!

Download using HTTPS doesn't work on old versions

Discussion in 'Android Development' started by JourneymanChris, May 22, 2021.

  1. JourneymanChris

    Thread Starter

    I have an app which downloads simple text files from my website using HTTPS. I have been testing it on emulators for every version from API18 onwards, and on real devices running API18 and API28. It works fine for API21 and above, but for API 18 and API19 it fails - the download just hangs.

    The app uses DownloadManager, but I have also tried some code using HttpsURLConnection, with the same result.

    I have read some old stuff that seems to talk about problems with HTTPS on old Android versions but it wasn't clear what the issues were.

    Can anyone help a novice developer to understand the problem, and tell me how to download using HTTPS on Android version API19 and older?

    1. Download the Forums for Android™ app!



Share This Page