Android SDK Compilation--How to add source code to Android.jar and make principle 1__android

Source: Internet
Author: User
The first is how to modify the problem.
In/frameworks/base/android.mk, locate the following line:
Packages_to_document: =
At the end of the variable's assignment statement, add the
XXXXX (here is the name of your package, such as Com/sina/ui, in fact, this is your source code


In/frameworks/base/< your module >/java/The following path, as long as you can only match to your


Code)
Can.


The implication of this addition is that the make system contains our package when making the off-line document.
By the way, adding other new package can also do so.


The following is a simple way to write down the Android make SDK to explain why you are making such a change. The investigation was reversed.


to investigate. Explain or follow the order of Makefile's generation.
First, the basic target object for SDK building is defined in/FRAMEWORKS/BASE/ANDROID.MK.
Includes which. java files need to generate API documentation and the path to those documents.
Then the rules and statements for the final build are defined in/BUILD/CORE/DROIDDOC.MK.


Android uses the Javadoc tool to generate all API documentation.
Javadoc This tool can specify a file with a parameter that contains all the source files to be generated


's name (full path).
The contents of the file are generated by the variables in the/framework/base/android.mk. Of course in


The files in the intermediates directory generated during build are also added to the droiddoc.mk.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.