简体   繁体   中英

Integrating MuPDF library in Android Project

I downloaded "mupdf-1.3-source" and built using Cygwin.

Which files should I import in my Android project?

This is what i did to make MuPDF(currently using the 1.9 version) work with my project:

copy the jni folder in MuPDF-1.9-source into my project folder;

copy the thirdparty, generated, scripts, xps, fitz, cbz drawable folder into the jni folder that just copied over;

In res folder of my project, copy everything that the MuPDF needs, ie string values, colors, layouts, and drawables. For layout leaves the main layout alone copy the rest layouts over.

modify AndroidManifest.xml to include additional activities

I used cgywin to rebuild the libraries(?),but it gave me an error. Somehow without that step, MuPDF works for my project...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM