Member-only story

[Android] Downloading and installing APKs within an app

Padam Chopra
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.

--

--

Padam Chopra
Padam Chopra

Written by Padam Chopra

Computer Science @UWaterloo ’23. Interested in building products, especially native mobile apps and Flutter.

No responses yet