Tag Archives: Android source code

Viewing Contextual Android source code from the Developer documentation – Chrome plug in

If you want to look at Android source code in a contextual manner, use these 2 Chrome plug-ins:
AD (Android SDK Search) and ARN (Android resource navigator).

After installing these,

  • Open Chrome
  • Type AD followed by Class (say) TextView
  • The android developer site’s TextView page opens.

Notice the “View Source” link right next to the TextView title. Click on it to go to the class implementation.
Follow similar steps to look at resource source code. The beauty of this is that the tool will navigate you to whichever repo the source code is located in – you don’t have to do this yourself.

I found this when trying to see how they implemented the InputFilter class for the EditText component.