"Go" android source code viewing path

Source: Internet
Author: User

Original URL: http://www.it165.net/pro/html/201501/32967.html

As an Android coder, read more Android source code to improve the level of Android development is very helpful, then we can find out which way to view the Android source code?

1. If you can fq, go to the Android website to view the source code http://developer.android.com/reference/packages.html

2.http://androidxref.com/5.0.0_r2/

Androidxref can also view all versions of Android, just change the http://androidxref.com/5.0.0_r2 suffix 5.0.0_r2 to the appropriate version

3, Http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/

Like Androidxref, Grepcode can also view various versions of Android, faster than Androidxref

4.https://android.googlesource.com/?format=html

5. View in IDE

Download the SDK version in SDK Manager

6. One Chrome kernel browser plugin:Android SDK Reference Search

This plugin can be searched directly into the extension center.

Https://chrome.google.com/webstore/search/Android%20SDK%20Reference%20Search%20

After installing this plugin you can go directly to the Android API official website: http://developer.android.com/reference/packages.html

To find a class casually: for example Activity:http://developer.android.com/reference/android/app/Activity.html

And then we can see that there's a lot more behind the aitivity (view source), as follows


By tapping (view source), you can jump directly to the online official source code provided by Google:

Https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/app/Activity.java

"Go" android source code viewing path

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.