Mobile Development

Best Ways to Reduce Android App Size in the App Development Lifecycle

August 3, 2022 · 6 min read

Best Ways to Reduce Android App Size in the App Development Lifecycle

Smaller Android apps download faster and install more often, so trimming size throughout development directly improves adoption and competitiveness.

Mobile developers constantly balance adding features against keeping apps compact. Large apps create performance problems and storage constraints, so it is vital to build portable, small apps that are responsive, interactive and adaptive to most mobile devices.

Remove Unused Resources and Dead Code

Use the lint tool to detect unused resources in the res/ folder and reuse existing resources rather than creating new ones. Removing non-functional dead code improves load speed, memory usage and power consumption while also strengthening security.

Optimise Images and Use App Bundles

  • Compress and optimise images, since Google notes that apps over 150MB have lower download and installation ratios than smaller apps, and high-definition formats can shrink without quality loss
  • Adopt the Android App Bundle publishing format, which can reduce APK size by around 35% using configuration APKs and on-demand dynamic feature modules
  • Trim external libraries to keep only the components the app actually needs

Compress, Measure and Analyse

  • Eliminate redundant code, avoid enumerations by converting them to integers and remove debug symbols from native binaries
  • Benchmark your app size against successful competitor apps to find optimisation opportunities
  • Use the APK Analyzer in Android Studio to view file sizes, download metrics and compare versions
  • Rely on Android’s automatic scaling across screen densities instead of shipping comprehensive density support

Conclusion

Smaller apps download faster, achieve higher installation rates and stay more competitive. By reducing app size throughout development, teams deliver user-friendly, responsive applications that perform better in the market than their larger alternatives.

Start a conversation

Let’s build something better.

Tell us what you’re trying to achieve. We’ll bring the engineering, cloud, data, and AI expertise to get you there.

WhatsApp us