# Building a Really, Really Small Android App

DevFeed: [Building a Really, Really Small Android App](<https://devfeed.tech/articles/building-a-really-really-small-android-app-27364.md>)

Original publisher: [Read original article](<http://engineering.khanacademy.org/posts/a-really-small-app.htm>)

Author: Khan Academy

Published: 2016-08-22T22:00:00Z

Content type: article

Language: en

Sources: [Khan Academy](<https://devfeed.tech/sources/khan-academy.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [APK](<https://devfeed.tech/topics/apk.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [mobile-app-performance](<https://devfeed.tech/topics/mobile-app-performance.md>)

Tags: [1-4](<https://devfeed.tech/tags/1-4.md>), [2](<https://devfeed.tech/tags/2.md>), [2-2](<https://devfeed.tech/tags/2-2.md>), [about](<https://devfeed.tech/tags/about.md>), [abstraction](<https://devfeed.tech/tags/abstraction.md>), [academy](<https://devfeed.tech/tags/academy.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [analyze](<https://devfeed.tech/tags/analyze.md>), [android](<https://devfeed.tech/tags/android.md>), [android-engineer](<https://devfeed.tech/tags/android-engineer.md>), [app](<https://devfeed.tech/tags/app.md>), [app-size](<https://devfeed.tech/tags/app-size.md>), [building](<https://devfeed.tech/tags/building.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [free](<https://devfeed.tech/tags/free.md>), [important](<https://devfeed.tech/tags/important.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [news](<https://devfeed.tech/tags/news.md>), [size](<https://devfeed.tech/tags/size.md>), [small](<https://devfeed.tech/tags/small.md>), [team](<https://devfeed.tech/tags/team.md>)

## AI overview

A video-only Khan Academy Android app reached a 26 KB download size (20 KB for pre-Lollipop devices), over 1,000 times smaller than the existing app, by sharply limiting functionality and avoiding packaged assets and dependencies. The text-based UI used the system font; a minified logo was packaged as a VectorDrawable, with a separate pre-Lollipop APK omitting it and other resources. Content metadata was fetched per screen, prefetched as users navigated, and cached to enable offline browsing of visited topics. The app used Android framework components such as VideoView, AsyncTask, HttpURLConnection and org.json instead of ExoPlayer and third-party libraries, accepting less customization and API-specific UI limitations. Redex reduced the APK from 30.7 KB to 26.2 KB; removing logging and error strings and replacing enums with integers reduced it further, though the author had not verified the enum change's bytecode effect. The comparison excludes some JavaScript bundle size, and reported download measurements came from APK Analyzer preview software.

## Source excerpt

By Charlie Marsh App size is important to us. As a team striving to deliver a free, world-class ... Read more