Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaDoc in an Eclipse Android Project

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)?

like image 397
Robert Avatar asked Feb 15 '10 18:02

Robert


3 Answers

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.

like image 146
Kevin Tighe Avatar answered Oct 20 '22 05:10

Kevin Tighe


Install "Documentation for Android SDK" package using Android SDK and AVD Manager.

like image 28
ketorin Avatar answered Oct 20 '22 05:10

ketorin


This answer is new and might not been available on 2010 when the question been asked And these docs include android SDK docs which many developers need and google app engine too

Detailed steps for the above link .. for indigo

middle reference

like image 3
shareef Avatar answered Oct 20 '22 05:10

shareef