View the source code in Android eclipse
When developing Android, it is difficult to view the source code.ArticleLater versions (All Versions earlier than 2.0, which is different from the configuration of my latest 2.2 version). However, I still gave some inspiration. Through configuration, I can finally view the source code in eclipse!
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 !!!
View the source code in Android eclipse
When developing Android, you cannot view the source code. It is quite uncomfortable. After reading some articles on the Internet (both versions are earlier than 2.0, which is different from the configuration of the latest 2.2 version) however, it gave me some inspiration. Through configuration, you can finally view the source code in eclipse!
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 !!!