How to: view core Android Java sources in Eclipse

How to: view core Android Java sources in Eclipse

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.

About author

AndroidGuys
AndroidGuys 4639 posts

Founded on November 5, 2007, we've enjoyed bringing you the latest in Android news and rumors. Updated daily, we strive to deliver reviews, opinions, and updates on all things related to Android.

You might also like

News and Rumors

Why Tune In To The Thursday Night DROIDcast? Let Me Tell You…

“Oh Scotty,” you say… “why do you harass us constantly about tuning into the AndroidGuys Thursday Night DROIDcast every week?” My response is pretty simple; “because we have a great

News and Rumors

Froyo-based Cyanogenmod 6 Feature Walkthrough

Teamdouche is a well-oiled machine and is putting the finishing touches on their latest iteration of Cyanogenmod!  As we reported recently, members of the Cyanogenmod community have been hard at

News and Rumors

Spotify rolls out new ‘Browse’ page for moods, moments, and more

Spotify announced on Monday that a new “Browse” page has been added to the music streaming service. Designed to further help listeners discover new music and artists as well as

9 Comments

  1. Mwanji
    December 17, 01:02 Reply

    You can also get the source code for 4.0.x via the SDK manager and then attach the source to the JAR as usual.

  2. wiz
    December 19, 00:36 Reply

    it must update the new SDK

Leave a Reply