Add Android source code to SDK

Source: Internet
Author: User

When we useADTAAndroidAfter the project, A is not included by default.Ndroid. jarSource code, for example, when we want to view the classActivityWe usually get an interface like this:

In this case, if you want to view the class code in android in the project, you must use the following methods:

The android search code of ADT is searched from the sources folder under the sdk directory. you can view the jar code in Eclipse, but there are a lot of android source code. You need to download the entire android code to extract it, but we do not need to extract it, someone on the Internet has extracted it.

For example, the following download URL can be downloadedAndroid1.5,Android1.6OfAndroid source code

Http://rgruet.free.fr/public/android-1.5-cupcake-src.zip (21.6 MB). This is 1.5 android source code

Http://www.weka.com.br/files/android/android-1.6-donut-src.zip this is 1.6 android source code

EnterSdkIn the installation directory\ PlatformsFolder, allSdkAll versions are in this directory,

In this directoryAndroid-2,Android-3,Android-4,Android-5,Android-6,Android-7,Android-8This corresponds to the Android-8 in our general Android version.

Android2.2Version,Android-7CorrespondingAndroid2.1,Android-6CorrespondingAndroid2.0.1,Android-5CorrespondingAndroid2.0,Android-4CorrespondingAndroid1.6,Android-3CorrespondingAndroid1.5

For example, you downloadedHttp://rgruet.free.fr/public/android-1.5-cupcake-src.zipThen you should enterPlatforms \ android-3Create a folder named sources instead of source. decompress the downloaded compressed file to the sources directory, in this way, you can view the android code in Eclipse !!!!

Explanation of important file types in the Android system

Android multi-task multi-thread breakpoint download

Android Activity and Intent mechanism learning notes

Use Internet Data in Android applications

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.