Detailed explanations in http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/
Http://ralf.alfray.com/.izumi/AndroidTips.blog
. Here we will only talk about how to do this.
1. Download the source code. The source code of the andorid framework should all be in the frameworks/base/directory.
2. Go to the directory where Android. jar is located, both android-sdk-windows-1.5_r2/platforms/Android-1.5, and create a sources directory under that directory. The source directory is written to Android. jar, so the directory name must be correct.
3. Copy the android files in the frameworks/base/CORE/Java directory to the sources directory. After restarting eclipse or refreshing the project, you can see the source code in eclipse.
Of course, we only copied the source code under base/CORE. You copied all the content under other base/***/Java/Android directories to the sources/Android directory and click andorid. in jar, or press F3. Basically, you can see all the android framework code.
I don't know that the man wrote a Python script. He can automatically find all the source code of Android. jar and generate a sources directory independently. We just need to put this directory under the android SDK directory. The SVN address of the script is http://browse-androidsdk-sources-in-eclipse.googlecode.com/svn/trunk