Android source code online viewing

Source: Internet
Author: User

Google opens the android source code. We can download it from the following website:

Http://source.android.com/source/downloading.html

However, sometimes we just want to see how a part is implemented and do not want to download the entire repo or even the entire workspace. Android online source code provides us with a good choice.

Search for "android source code online" in Google and find the following link:

Http://stackoverflow.com/questions/449763/where-can-i-browse-android-source-code-on-line

It provides many ways of Online source code. Unfortunately, due to time reasons, many of them have become invalid. However

Https://github.com/android/

It has been valid and updated to Android 4.0.3. Open the website and we can see that it is organized by git Repo. For example, the Dalvik repo source code is in https://github.com/android/platform_dalvik. you can directly appreciate dalvik.

But what I want to share with you in this article is what another buddy provides. A chrome plug-in, he can directly jump from the Android online class documentation (http://developer.android.com/reference/packages.html) to the implementation of this class source file!

For example, after installing the plug-in, open the http://developer.android.com/reference/android/content/BroadcastReceiver.html In the Chrome browser, we found that the brooadcastreceiver class added a link (View
Source)
After you click this connection, the online source code of this class will be automatically activated! As shown in:

With this plug-in, we can easily view how these Android classes are implemented. The plug-in can be installed from the following address:

Http://blog.blundell-apps.com/add-source-code-links-to-android-apis/

Of course, it is only applicable to chrome browsers

Enjoy!

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.