Wrote a class Mainacvitivity extends activity, press F12 (I changed the switch to the definition of F12 shortcut), go to the Activity definition, pop up the following interface
That means no Android source is found, then use SDK Manager to download Android
First look at the Android SDK version of the project: right-click Project->properties
Open SDK Manager to download the corresponding Android SDK level source
Sometimes you may not be able to use the SDK Manager to update, you can use the proxy way, please refer to:
Http://www.cnblogs.com/sunzn/p/4242131.html
After downloading the corresponding Android SDK, set the specified directory in eclipse, such as
You can specify the directory of the Android SDK, that is android-20 (this is the directory above my Computer), 20 is level, there is Android.jar, you can also directly specify android-20/ Android.jar, two ways two choose one, click OK after the general will go to Activity.class source, if not go to Activity.class source file, it is necessary to set up the anti-compilation tool, is to Activity.class decompile into ACTIVITY.J Ava, presented to eclipse
Installing the Jadclipse Plugin
1. Download the jadclipse3.3 at http://sourceforge.net/projects/jadclipse/
2. Download the Jad.exe to http://varaneckas.com/jad/and place the Jad.exe under the local directory 3. Copy the file Net.sf.jadclipse_3.3.0.jar to the Eclipse's plugins directory, restart Eclipse, and set up the Jad executable file, as
4. Set the default open mode for the *.class type file,
5. Set the default open mode for *.class without source,
OK, this time you can go to the definition of activity.class.
View Android source code in eclipse