Resource Roundup: Android Source Code

Much has been made of Android being open source. Strategically, this is of huge importance. Tactically, though, your average Android application development may feel somewhat locked out of the source code, simply due to volume. The entire set of Android source code takes up 2.1GB, which means learning anything from it may be as difficult as finding a needle in a haystack.

So, here’s your map to some needles of interest.

First, the source code as a whole is hosted on, and any questions you may have about the source code should go on one of the discussion groups related to the source code itself.

While the source is hosted as a roster of git repositories, your easier way to find what you want will be through the Web. There are two approaches for this:

  1. Use Google Code Search, restricting your search to things in the Android package. For example, you can search for references to specific classes, like SQLiteOpenHelper, via package:android SQLiteOpenHelper. This is especially useful when you want to find other classes that reference a particular class of interest (e.g., which Android built-in apps use SQLiteOpenHelper).
  2. Browse the source code via GitWeb.

Here are some of the more useful GitWeb trees for Android SDK developers:

Browsing the trees will get you to the source code for individual classes.

If you are looking simply to reuse some code (under the Apache License 2.0), it is probably simplest to just cut-and-paste. For example, DroidEx was created by examining some of the classes that make up DDMS and hierarchyviewer, to see how they accessed the screenshot service offered by Android devices and emulators.

About author

AndroidGuys 4629 posts

Founded on November 5, 2007, we've enjoyed bringing you the latest in Android news and rumors. Updated daily, we strive to deliver reviews, opinions, and updates on all things related to Android.

You might also like

News and Rumors

Motorola Droid Bionic Now Available for $199

Verizon has dropped the price of the Droid Bionic this week, knocking $100 off the cost only three months after it made its debut.  The carrier is touting it as

News and Rumors

Samsung eyeing new acquisitions to help bolster services

Samsung is looking to scoop up a company or two to help bolster its portfolio of services and features, reports the Wall Street Journal. After losing out on Waze to

News and Rumors

Nexus 6 arrives at Verizon starting March 12

After months of waiting, Verizon customers can finally get the Nexus 6 on “the nation’s largest and most reliable 4G LTE network” starting on March 12 online, and March 19

1 Comment

Leave a Reply