How to view adroid API code in eclipse

Source: Internet
Author: User

Detailed explanations in http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/
Http://ralf.alfray.com/.izumi/AndroidTips.blog
. Here we will only talk about how to do this.

1. Download the source code. The source code of the andorid framework should all be in the frameworks/base/directory.

2. Go to the directory where Android. jar is located, both android-sdk-windows-1.5_r2/platforms/Android-1.5, and create a sources directory under that directory. The source directory is written to Android. jar, so the directory name must be correct.

3. Copy the android files in the frameworks/base/CORE/Java directory to the sources directory. After restarting eclipse or refreshing the project, you can see the source code in eclipse.

Of course, we only copied the source code under base/CORE. You copied all the content under other base/***/Java/Android directories to the sources/Android directory and click andorid. in jar, or press F3. Basically, you can see all the android framework code.

 

 

I don't know that the man wrote a Python script. He can automatically find all the source code of Android. jar and generate a sources directory independently. We just need to put this directory under the android SDK directory. The SVN address of the script is http://browse-androidsdk-sources-in-eclipse.googlecode.com/svn/trunk

 

 

 

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.