View the source code of the android System in eclipse of Android

Source: Internet
Author: User

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

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.