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
- http://rgruet.free.fr/public/android-1.5-cupcake-src.zip (21.6MB)
- http://www.mediafire.com/file/awnzktte2wy/android-1.5-cupcake-src.zip
Android-1.6 has the following
- http://rgruet.free.fr/public/android-1.6_r1-donut-src.zip (23MB)
- http://sandos.se/~sandos/android-1.6_r1-donut-src.zip
- http://www.droidnova.com/android-sdk-1-6-donut-sources,511.html
Android-2.0 has the following
- http://rgruet.free.fr/public/android-2.0-eclair-src.zip (24.4MB)
Android-2.2 has the following
- 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:
- android_sdk_installation_folder\platforms\android-1.5\sources
- android_sdk_installation_folder\platforms\android-1.6\sources
- android_sdk_installation_folder\platforms\android-2.0\sources
I am using the SDK for installation:
- 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
- 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!