tags:

views:

243

answers:

2

HI all,

I know I can access android source code from http://android.git.kernel.org/, but it's hard to select the right git repo if I only know the package and the name of an android class.

Isn't there a way to locate a file in http://android.git.kernel.org/ ?

Thanks in advance

+2  A: 

Most things you'll want to see can be found under the frameworks/base repo. This includes pretty much all the public and private API classes that make up the Android Java framework.

Once you're in that repo, you can use the commit or grep search functions to find what you're looking for.

Alternatively, if you want to be able to browse the source from within Eclipse, you can follow this guide: http://blog.michael-forster.de/2008/12/view-android-source-code-in-eclipse.html

Christopher
Thanks this is perfect
kosokund
A: 

There is an issue raised against Android project for a single .jar file containing the Java sources.

The issue has been declined but the comments are a good source of methods to access the source in Eclipse.

Dave Webb