View the source code in myeclipse for Android
When developing Android, it is difficult to view the source code.ArticleLater (both versions earlier than 2.0 and different from the configuration of my latest 2.2 version), but it still gave me some inspiration. Through configuration, you can finally view the source code in myeclipse!
Download the source code first. The latest version is 2.2.
1. Source Code address: http://rgruet.free.fr/public/
2. Find the SDK directory
Install the SDK to my directory e :\
E: \ Android-SDK-Windows \
Find the directory structure as follows:
E: \ Android-SDK-Windows \
-Platforms
+ Android-2
+ Android-3
+ Android -....
+ Android-8 (numbers represent API versions)
The highest Android-8 corresponds to sdk2.2.
OK !!
Create a sources file in the Android-8 file and decompress the source code to the file.
3. modify the configuration file
Find the file in the Android-8 directory
Modify source. properties as follows:
### Android tool: Source of this archive.
# Wed Oct 14:00:16 CST 2010
PKG. DESC = Android SDK platform 2.2 _ r1
PKG. usersrc = true
Archive. Arch = any
Platform. Version = 2.2
PKG. descurl = sources
Archive. OS = Windows
PKG. sourceurl = sources
PKG. Revision = 2
Androidversion. apilevel = 8
OK, restart myecplise, and press ctril + keyword and class name to see if you can click in. You can see the source code !! Cool!
Pay attention to the relationship between different source code and SDK !!!