Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Does anyone know of a website where the entire Android kernel and application stack is indexed and easily searchable? There are many LXR installations for the Linux kernel (like lxr.linux.no), but I haven't been able to find one for Android.

I often need this kind of access to the Android source code while developing my apps. Either to understand why something works the way it is, or to learn by example.

I am mainly looking for an easy interface that:

  1. Allows me to search for any identifier.
  2. Provides cross-reference links so I can easily jump between functions and find references.
  3. Doesn't require me to download the entire source package.
  4. Provides access to more than one Android version.
share|improve this question
add comment (requires an account with 50 reputation)

closed as off topic by Andrew Barber May 27 at 18:21

Questions on Stack Overflow are expected to relate to programming within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

6 Answers

up vote 19 down vote accepted

You may want to check a project that has recently started with the indexed code of Android: http://androidxref.com

The website is still in its early days but it is already functional. It is very much like lxr, but it uses OpenGrok as the indexing engine.

share|improve this answer
PERFECT! Exactly what I was looking for and works very well. Are you one of the authors? I would love to see better JNI linking. The C function name can be automatically determined from the package name, class name and method name. – kichik Jan 23 '12 at 23:17
1  
Well, I'm the one who created the website, but not the index Engine itself. It still has some stability problems, but as soon as I manage to fix it I will start working on improvements to the engine. Any suggestion is more than welcome. =) – Rodrigo Chiossi Jan 24 '12 at 15:10
Cool, thanks! I'd love to see different versions of Android too. – kichik Jan 24 '12 at 19:47
I'll be adding different versions in the future. I started with Icecream Sandwich as the pilot, but the plan is to have all the versions indexed, – Rodrigo Chiossi Jan 25 '12 at 1:53
1  
Despite all the new answers, this one is still the best option. I use it almost every day. – kichik Jun 7 '12 at 16:35
add comment (requires an account with 50 reputation)

I think grepcode.com is the best

Hope it is what you're looking for

share|improve this answer
1  
Not exactly the most friendly search results, but exactly what I was looking for. Thanks. – kichik Sep 4 '11 at 0:48
Actually the search results are terrible. And where is the advanced search ? I did spend time searching for it and this tells a lot about their UI people. The accepted answer on the other hand works like a charm – Mr_and_Mrs_D May 13 at 23:45
add comment (requires an account with 50 reputation)
  1. http://www.google.com/codesearch this gets a bit confusing sometimes as it provides search of all free software repositories.

  2. http://android.git.kernel.org/ the original Android repository. Hard to search as you have to know the name of the package where your class is.

share|improve this answer
Thanks. The Google Code Search helps find stuff, but I can't follow the code logic as there's no cross-reference linking. It also doesn't allow me selecting the version I want to search. – kichik Aug 30 '11 at 5:30
add comment (requires an account with 50 reputation)

https://android.git.kernel.org/

share|improve this answer
Thanks, but it's not really searchable and there is no cross-reference linking. – kichik Aug 30 '11 at 5:28
@kichik. It is searchable, though only within each package (you'll soon learn where the likely suspects are). But no, it's not cross references. And if you want to search across packages, you'd have to download it and to something like a recursive grep on the whole tree. – Chris Stratton Aug 30 '11 at 6:30
add comment (requires an account with 50 reputation)

These are my bookmarks while learning mobile development in the past couple of months. They also include the major links for learning Java.

Code repositories

Code repositorie:

Google code:

Github code:

Code crawler:

For more resources, check out my post here: http://stackoverflow.com/a/10899469/824009

share|improve this answer
add comment (requires an account with 50 reputation)

If you like LXR format more, there is android cross reference in this format: http://osxr.org/android/source

share|improve this answer
add comment (requires an account with 50 reputation)

Not the answer you're looking for? Browse other questions tagged or ask your own question.