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.