Android SDK source code

I need to look at the .java files of the android sdk. I have developed applications before but I never needed to look at them so it wasn't a problem then. I saw there is a jar file android.jar that contains all the class files structured but actual sources are not there. git gives various problems to me because I am behind a weird proxy so hasn't been very helpful. What should I do?

EDIT: I'm talking about the java files, just to clarify. And in case you are okay with browsing the code online, Where can I find Android source code online?


Just open the Android SDK Manager and select the Sources for Android SDK of the API level you are trying to support and click Install packages:

(In this case I selected those for SDK v4.3 API-18 and SDK v4.2.2 API-17 but I already have them installed)

If for some reason you SDK manager button doesn't show up on the Eclipse toolbar, follow this recommendations.

To link the source code to Eclipse just follow this instructions; Android Sources are usually under [ANDROID_SDK_FOLDER]/sdk/sources/android-[API_LEVEL]

You can download the ICS sources via the adk manager to your local machine and then attach them to your project in you IDE. See e.g. the blog of Lars Vogel

It is a online latest linux and android source code browsing website.

Android/Linux Source Code Cross Reference

You can browse the .java files of the Android SDK here:

Need Your Help

What is the shorcut in visual studio to switch from code behind to Xaml Code?

.net wpf visual-studio

I'm used to press shift+F7 to switch between my code behind and the designer (which takes between 1 and 5 seconds to load) then I always have to click on View Xaml to modify my XAML code.

comparing nullable(of boolean) nullable

I'm trying to compare two variables of type nullable(of boolean) in VB.NET 2010. One of the variables has a value False and the other is Nothing. Now I was expecting the following expression to eva...