Adding Android Java Source to Eclipse

Steps:
  1. Install Git for Windows: http://code.google.com/p/msysgit/
  2. Open up Git Bash and execute the following command to get the source (master branch) git clone git://android.git.kernel.org/platform/frameworks/base.git android-api
  3. Open up Eclipse.
  4. Properties > Java Build Path > Libraries
  5. Expand Android x.x
  6. Expand android.jar
  7. Click Source Attachment > Edit
  8. Click External Folder
  9. Point to: [source-download-location]\android-api\core\java\
That's it! References:

0 comments: