When talking about application size, developers usually look at and compare the file size of the APK that's output at the end of the build in Android Studio/Gradle. The real question we should be asking ourselves is how much does it cost to send your APK to the user over the network and how much space it's going to take up on their device (which is, perhaps surprisingly, not the same as the APK size on your computer). I will show a few ways to optimize for each of these stages and also show why optimizing for the lowest APK file size possible is not always desirable.
YOU MAY ALSO LIKE:
Optimising APK
Wojtek Kaliciński
I am a Developer Advocate at Google and I work closely with the Android Studio team to provide outreach on new Studio and Tools releases and framework features. I enjoy looking for ways to make apps more usable, mostly through better development patterns and code optimizations.