I just read an introduction to view JavaSource codeOfArticleI never saw the source of the android SDK.Code, It should be possible to directly import it to eclipse, and then try it. It works.
When you read the code, you will often use Ctrl + left mouse to view the classes you write. Sometimes you cannot open the classes in Java or Android, and show no class found or other things,
1. take the button as an example. After CTRL and the left mouse button are displayed and no class found is displayed, only one button on the page can be clicked, that is, change attach source. If this is the first time you come in, attach source may be displayed. In short, it's him. Just click it,
2. Several buttons are displayed. Click external folder to find the installation directory of your android SDK.
3. find sources in the installation directory. Several versions will be displayed after the installation, which are different from those you downloaded. Here I only have Android-15 and Android-16, I chose a later version of Android-16, and then I can exit it.
After loading the button, the source code of the button will be displayed.
In this way, you can not only view the android internal class source code, but also view the Java internal class source code. I don't know how it will happen after I finish it. I don't know how it will happen before, so I can't do it. I just need to say this in my memory. If you don't understand it, just ask.
If you just want to load the Java source code, according to the following operation is actually the same principle, is to add the SDK source code. Let eclipse find the path on the line. http://blog.csdn.net/maybe_windleave/article/details/9896501