How to Use third-party jar libraries for Android

Source: Internet
Author: User

 

Import:

Third-party external jar library files can be used on the Android platform. In the eclipse development environment, third-party. Jar files can be used in only three steps.

1. on the package explorer panel, right-click and choose Properties From the shortcut menu)

2. Select Java build path (Java build path) and then select the libraries tab.

3. Press the Add external jars button and select the JAR file.

If you want to include third-party jars to your package, create a new directory in your project and select Add library... android Development Network prompts that the external jars file can be used normally without being put into the project folder.

Export:

First, create an android project, confirm that the android project can be compiled, remove the androidmanifest. xml file, andProgramResource image, such as res/drawable/icon.png. In eclipse, find package explorer and select export;

Next, select Java and JAR file in the Export Dialog Box;

In JAR File Specification, select the resources that we need everywhere. In JAR file: path, select the storage location of the exported files, select compress the contents of the JAR file to compress the size of the generated file. Click Next or finish to complete the export. In this way, you can import the database in future projects.CodeThe effect of multiplexing is similar to that of DLL files developed in Windows 32.

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.