September 3, 2014

How to: view core Android Java sources in Eclipse

android-developer-logo

I don’t know why this is not really showing in Google Search results, but if you want to step through the core Android Java code in your Eclipse project, finally there’s a legitimate and very convenient solution that is a part of ADT-Addons project. The steps are pretty self-explanatory, but just in case,  here’s what you need to do:

  1. In your Eclipse click Help->Install New Software
  2. Click the “Add” button and put this URL into the resulting pop-up (name it whatever you want)
  3. Click “OK” and mark the “Android Sources” checkbox
  4. Click “Next” and any “OK”, “Agree”, “Next,” or “Finish” buttons afterwards
  5. Restart Eclipse after the installation, and now you can step right into Android code from your debugger and see the source code for Android Java files right in the Eclipse editor.

 

Hopefully this helps some developers, or even some beginners with Android Java projects.