How to view the source code of each version in Eclipse Android

Source: Internet
Author: User

In Eclipse Android, how to view the source code of each version is introduced in this article, mainly to understand and learn about Eclipse Android content. For details about Eclipse Android, see this article.

Let's take a look at this article: the Eclipse Android project is imported to the development environment. This is the project for importing android.

Eclipse + ADT is currently the most recommended development environment for Eclipse Android. However, some Eclipse Android programs use some tools provided by Android, such as Android commands) and other IDEs, how can we import these Android projects created in non-Eclipse?

1. Make sure that your Eclipse has installed the ADT (Android Development Tools) plug-in. For more information, see the official documentation)

2. Create an Android project, select "Create project form existing source", and click "Browse..." in the Location to select the folder where the Android project is located.

Everything else will be automatically recognized by Eclipse. After you click "Finish", the project will be successfully imported to Eclipse.

At first, I did not perform the following steps. I can view the API on google through the network, but it is not very comfortable.

Thank you for modifying some of your problems.

1. Download android

Android-1.5 has the following

 
 
  1. http://rgruet.free.fr/public/android-1.5-cupcake-src.zip (21.6MB)   
  2. http://www.mediafire.com/file/awnzktte2wy/android-1.5-cupcake-src.zip  

Android-1.6 has the following

 
 
  1. http://rgruet.free.fr/public/android-1.6_r1-donut-src.zip (23MB)   
  2. http://sandos.se/~sandos/android-1.6_r1-donut-src.zip   
  3. http://www.droidnova.com/android-sdk-1-6-donut-sources,511.html  

Android-2.0 has the following

 
 
  1. http://rgruet.free.fr/public/android-2.0-eclair-src.zip (24.4MB)  

Android-2.2 has the following

 
 
  1. http://devfrustrated.com/devBlog/wp-content/uploads/2010/07/sources_2.2.zip 

2. android Installation

Create a new folder sources under each sdk version, as shown below:

 
 
  1. android_sdk_installation_folder\platforms\android-1.5\sources   
  2. android_sdk_installation_folder\platforms\android-1.6\sources   
  3. android_sdk_installation_folder\platforms\android-2.0\sources  

I am using the SDK for installation:

 
 
  1. C:\Android\android-sdk-windows\platforms\android-10\sources 

That is to say, the project you created under android-x creates a sources directory under andorid-x.

Decompress the downloaded zip file to the sources File above, and restart eclipse to view the file.

Remember to restart. Locate the activity, press F3, and change the path

 
 
  1. C:\Android\android-sdk-windows\platforms\android-x\sources。 

Summary:Eclipse AndroidTo view the source code of each version.Eclipse AndroidContent learning is helpful to you!

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.