Skip to content Skip to sidebar Skip to footer

How To Add Javadoc For Android To Netbeans

I just started using Net Beans. I am wanting to try my hand at developing android apps. I got the android sdk downloaded and everything is working well. I can create little apps

Solution 1:

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


Solution 2:

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.


Solution 3:


Solution 4:

Not sure what your setup is like, but the JavaDoc is stored in /docs/reference
For my setup I had to create a zip of that folder and add it as JavaDoc to the Android library.


Solution 5:

If you use the nbandroidsupport plugin you can download the javadoc from Android SDK Manager, you can found the package in the latest android's API (in my case Android 5.1.1) the name of package is "Documentation for Android SDK".

Once you have installed the package restart your netbeans. In my case the javadoc is not showing sometimes pressing ctrl+space on the method therefore you can show the javadoc pressing ctrl+shift+space.

Note: this method applies to any API version.


Post a Comment for "How To Add Javadoc For Android To Netbeans"