How to view the android source code in eclipse

Source: Internet
Author: User

Problems:
If you frequently read the source code during the learning process, you will have a deep understanding and a high learning efficiency. How can you easily and quickly read the android source code? Take Version 2.2 As An Example below?

Answer:
We know that in eclipse, you can press the ctrl key and click the left mouse button on a class to jump to the files of this class. If no source code is available, the system will jump to the class file. Therefore, we only need to test the source code to a proper location, and eclipse can find the source code. Next, let's take the following steps:
Download the android-2.2-froyo-src.rar source code, decompress it, and place it in the specified directory of the android SDK. The directory on my machine is: C: \ WEB \ Android-SDK-Windows \ platforms \ Android-8 \ sources, where the sources directory is self-built. After decompression, it should be like this:

After that, restart eclipse and open an android project. Press ctrl and click activity. Is the source code displayed?



Congratulations! the source code has been installed successfully ..


Find a sharing http://download.csdn.net/detail/zxf4516/4932751 to thank this buddy on the download channel.

Related Article

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.