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 4627 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

7-inch Wikipad due in spring

After a short delay, the gaming tablet will soon be offered at $249.99.

News and Rumors

Key Lime Pie build surfaces in Chromium bug tracker

The first signs of a new version of Android have surfaced through Chromium, suggesting that Google is already testing something fresher than 4.3 Jelly Bean. A user on the bug

News and Rumors

LG announces three new tablets: 7.0, 8.0, and 10.1

LG will be announcing three new tablets, the G Pad 7.0, 8.0, and 10.1 in Monaco on May13 at the MedPI tradeshow.  Besides the screen size, LG has not announced

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