View Android source code in eclipse

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.