How to add javadoc for android to Netbeans How to add javadoc for android to Netbeans android android

How to add javadoc for android to Netbeans


The best way as below steps in NetBeans 7:

  1. Tools --> Ant Libraries.
  2. New library --> Name it Android.
  3. Classpath --> Add JAR/Folder --> {SDK Folder}\platforms\android-16\android.jar(in short find android.jar and use it's path, for me I'm using 16 version).
  4. Javadoc --> Add ZIP/Folder --> {SDK Folder}\docs\references(important note: you may get error in above step, so search will not work. To solve it, copy the file index.html inside [references folder] to a new file and called index-all.html. Then re-add the path in step 4).

Source: Here


Take a look at the Android Sources provided by adt-addons. This eclipse plugin will download all of the sources and attach them automatically.

If you aren't using Eclipse, you can still download the source zips from the jar at http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/plugins/

Extract the jar file and inside you'll find source zips for each platform revision. Attach these to your IDE.

Otherwise, you can check out the sources manually from git but this is a rather lengthy and arduous process to achieve the above.


You can download various javadocs from

http://www.jarvana.com/jarvana/browse/com/google/android/android/2.3.3/

Just drop the javadocs jar files to android-sdk-{macosx,windows,linux}/docs