Eclipse Android Source code new download Method and association

Source: Internet
Author: User

One. Download Android source code

Android source code from 4.0 can be downloaded using the SDK Manager, open the SDK manager can see, 4.4 as an example:

Affiliate Android Source code

But always prompt download failed, timed out the connection, it is estimated that HTTPS made a ghost. < yo? " http://www.2cto.com/kf/ware/vc/"target=" _blank "class=" Keylink ">vcd4kpha+pgltzybzcmm9" http://www.2cto.com/ Uploadfile/collfiles/20140304/20140304081201261.jpg "alt=" \ ">

By looking at the start in this Android SDK Manager log window where there is a fetch behavior, all manually opened this file in the browser:

Open this file to find out what the content is:

1.121
Android SDK Platform 1.1_r1http://developer.android.com/sdk/android-1.1.html
...
219
21819439433a1d043ef77561571250e94cb7a0ef24a202e7sources-19_r02.zip
As you can see, the SDK manager downloads by parsing the file and then downloading it according to the user's choice.

Find Android API 19 where you can see one of the following:

Sources-19_r02.zip
It is estimated that this file, by viewing the log can be found that the file is taken under the https://dl.google.com/android/repository/, so after this URL add source-19_ R02.zip, and then enter, sure enough to start downloading and downloading it.

Two. Affiliate Android source code
Open Eclipse, create a new Android project, under this project directory there is an Android 4.4, click to expand the Android.jar appeared. Right-click this package---->properties, in the pop-up window, select Java Source Attachment------>external location------>external File, Then select the downloaded source-19_r02.zip to successfully bind the Android source code in eclipse.
1. Right-click Android.jar


2. Select the location of the Source-19_r02.zip

3.ctl+ the left mouse button to jump to the source code

Where you want to see the source code, ctl+ the left mouse button to jump to the source code. Take activity as an example:

After the operation, jump to the source code section:



Eclipse Android Source code new download Method and association

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.