Instagram

How Instagram Builds a Better Instagram App for Android

Original post Building a Better Instagram App for Android

Article Summary

Instagram cut their Android app startup time in half and reduced APK size by 50%. Here's how they did it.

In 2014, Instagram's Android team completely rewrote their app to serve 1 billion+ users across thousands of device types, from budget phones on slow networks to flagship devices. Engineer Tyler Kieft shares the technical decisions behind their dramatic performance improvements.

Key Takeaways

Critical Insight

Instagram achieved 50% faster startup and 50% smaller APK by ruthlessly eliminating work at launch through lazy loading, asset reduction, and strategic native rewrites.

Continue reading

What This Article Covers

Problem

Android devices come in wildly different sizes, from 240×320 to 1080×1920 pixels. That's a 27-fold difference. Instagram had to support all of them, plus deal with unreliable networks in emerging markets and vastly different hardware capabilities.

Solution

Instagram sorted screens into four groups based on aspect ratio and DPI. Smaller devices got condensed layouts, while larger screens got expanded ones. This made the controls easier to reach with your thumb.

Impact

The redesign made photo and video editing work better across all device types. Medium and large screens got layouts that actually used the available pixels instead of wasting them.

The webview-to-native conversion for their News feed revealed surprising resource conflicts that were silently killing performance.

This page summarizes “Building a Better Instagram App for Android” by Instagram, published Sep 12, 2023. All credit for the original work goes to the authors.

Read the original on instagram-engineering.com (opens in new tab)

AI tools for Android

Browse all AI tools →