Enhancing Our Android App's Launch Performance
Article Summary
Pepperfry's Android app launches 130,000+ times daily. Every millisecond of delay risks losing customers at the door.
The Pepperfry engineering team tackled app launch performance head-on, implementing strategic optimizations across splash screens, caching, API architecture, and library initialization. The result? A 40% improvement in homepage render time.
Key Takeaways
- Splash theme trick eliminates blank screen on app launch
- Local file caching beats SharedPreferences by hundreds of milliseconds
- Parallel API calls and lazy library loading cut initial load time
- Config API optimized to respond in under 100ms
Four targeted optimizations delivered a 40% faster launch experience and reduced memory footprint for 130,000+ daily users.
About This Article
Pepperfry's Android app showed blank screens when starting up on older, slower devices. This made a bad first impression when users tapped the launcher icon.
The team added a SplashTheme with the splash screen as a background image in the manifest. After the binaries loaded, MainActivity's onCreate method switched to the normal AppTheme.
The splash screen now appears instantly when users tap the launcher icon. This removed the blank screen delay that had frustrated users on older devices.