JavaDoc in an Eclipse Android Project

Robert picture Robert · Feb 15, 2010 · Viewed 23.1k times · Source

In our Android project, our code is JavaDoc'd and that generates everything properly. However, any reference to the Android API classes/functions results in a JavaDoc error and a link to the relevant information is not generated. Instead we get plaintext class names. How can we set up Eclipse to turn these into links to the online Android API reference (preferably) or a local copy (if necessary)?

Answer

Kevin Tighe picture Kevin Tighe · Feb 27, 2011

If you have the "Documentation for Android" package and the javadoc info still isn't showing up, make sure the Android library settings point to the right folder:

Project -> Settings -> Java Build Path, Libraries tab

Android X.X -> Android.jar -> Javadoc Location:
Should be something like "sdk_root/docs/reference/".

And to view the docs for a class in editor for example:

you should choose show attached java doc in web browser from to popup that appear when hover the cursor on some declaration.