How to Use jdk APIs not included in the android sdk in android Development

Source: Internet
Author: User

How to Use jdk APIs not included in the android sdk in android Development

During Android development, you need to call a java API that does not exist in the android sdk and consider introducing jdk. Find a solution by studying the jdk package file and sdk file. I did not do this work, so it took a day to understand what was going on ~~~


Harvest: Find out the functions of each directory in the jdk installation directory and the directory structure of the android sdk Api package.

Solution: In the installation directory, a compressed package src.zip can be imported directly to Android ~~~~

Project -- ---buildpath---source--adexternaljar--select src.zip


In this way, we do not need to consider how to add the jdk source code to the android. jar package. -------- There is still a problem. The package can be imported normally. You can see the package, but you cannot browse the class in the package.

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.