原文:http://stackoverflow.com/questions/2818204/how-to-generate-links-to-the-android-classes-reference-in-javadoc
Javadoc relies on a file calledpackage-list
to
determine what Java packages are documented below a given directory. For some reason, such a file ismissingforhttp://d.android.com/reference/,
therefore the "naive" approach with
-link http://d.android.com/reference/
doesn't work – you get a warning that the package-list could not be retrieved and no links are generated into your docs. (Note: The checkboxes in that 2nd eclipse dialog just assemble-link
parameters
for you, so that doesn't really make any difference)
However, Javadoc offers the-linkoffline
parameter
to be able to adjust for preciselythissituation: You want to link to some other Javadoc documentation online, but you cannot access it at the
time of generating your own docs. Here's how it works: While-link
takes
only one parameter (the URL of the JavaDoc docs you want to link to),-linkoffline
takes
a second one. That one is the location of thepackage-list
file!
So, to link to the online Android reference documentation, you shouldnotselect any checkboxes in the 2nd eclipse dialog, but instead add
-linkoffline http://d.android.com/reference file:/C:/pathtoyour/android-sdk-windows/docs/reference
in theExtra Javadoc optionsin the 3rd dialog. That way you use thepackage-list
of
your locally installed Android docs, but the links in your generated Javadoc will still point to the online version anyway.
Hope it helps!
分享到:
相关推荐
Considering the complex of the data required by Ministry of Transport of P.R.C every period of ten days, I design the following algorithm to generate the data required.
Some screenshots and links were removed in order to make the book easier to read and to print. We have put this book together to give you all the information you need for successful e-commerce ...
You should ensure that the server's public keys are loaded by the client as described in How to use SFTP (with server validation - known hosts), or you may want to switch off server validation to get ...
To generate logs, logging practice is accepted by developers to place logging statements in the source code of software systems. Compared to the great number of studies on log analysis, the research ...
In addition to building an Android game from start to finish, you will also discover how to generate revenue, and how to optimize game performance using the tools and functionalities the engine ...
A runnable jar that generate Javascript hook script to hook Android classes. Download Grab the prebuilt shadow jar (FridaAndroidTracer.jar) inside the repo, or clone the repo, open in IntelliJ IDEA. ...
You can generate plots, add dimensions to the plots, and also make the plots interactive with just a few lines of code with matplotlib. Also, matplotlib integrates well with all common GUI modules. ...
介绍如何在VanetMobiSim中产生NS2能够使用的trace file
What is the Android platform, and getting up to speed with the Android NDK. Using the Eclipse IDE to streamline developing native applications How to use Java Native Interface (JNI) to connect native ...
Even if you do choose to auto-generate your classes, understanding how these techniques work will allow you to expand the code to better fit your application's needs and to better troubleshoot issues...
SAP专业教材资料06_howto_generate_bw_author_profile.pdf
Herein you will find either the definitive documentation on an HBase topic as of its standing when the referenced HBase version shipped, or it will point to the location in Javadoc or JIRA where the ...
Add the generated arguments to your Gradle JVM arguments in an Android project. (See Gradle documentation for how to set the org.gradle.jvmargs property.) Finally, invoke Lint from Gradle as you ...
Instructions on how to download and install the JavaMail API are contained in the course. In addition, you will need a development environment such as the JDK 1.1.6+ or the Java 2 Platform, Standard...
AN12554 Demo Application to Generate Red/Black Blobs Using CAAM and Encrypt/Decrypt Data
This example provides a description of how to use a DMA channel to transfer a word data buffer from memory (Flash) to memory (RAM). The dedicated DMA channel is configured to transfer once a time a ...
This book explains how to use the software to analyze and format data, generate reports, perform advanced interactive reporting from the Web, and much more, making it the ultimate one-stop Crystal ...
Originally I authored Dante in Pause, the project is now dead and I decided to open source it. This is the very first release of Dante, the api will (most likely) change for the better with successive...