Member-only story
[Android] Downloading and installing APKs within an app
Sep 24, 2021
This story covers how you can set up a downloading utility class that allows you to download application APKs from a given URL and install them on the client device.
The code is pretty self-explanatory. As for the usage, just call MyDownloadManager.enqueueDownload(fileName=..., url=..., title=...).
fileName
is used for naming the APK that is being requested to download, url
is a publicly accessible downloadable link for the APK, and title
is shown to the user when asking for permission to download.