实现PDF查看器有APV [英] Implement pdfViewer with APV

查看:437
本文介绍了实现PDF查看器有APV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在看很多帖子,寻找一种方式来实现我的Andr​​oid应用程序这个例子。 <一href=\"http://apv.google$c$c.com/files/apv-0.3.3dev01.tar.gz\">http://apv.google$c$c.com/files/apv-0.3.3dev01.tar.gz

I am looking at many post, looking for a way to implement this example in my Android application. http://apv.googlecode.com/files/apv-0.3.3dev01.tar.gz

我读的地方,我必须使用NDK,我已经下载了,但我不明白这个做的。

I read somewhere that I have to use NDK, I've downloaded, but I do not understand to do with this.

我也看过,我已经运行该脚本build-native.sh,也不是如何做到这一点。

I have also read that I have running the script build-native.sh, nor is how to do it.

当您运行该项目,当你下载它,我有以下错误。

When you run the project when you download it, I have the following error.

07-03 10:18:06.171: ERROR/AndroidRuntime(375): FATAL EXCEPTION: main
07-03 10:18:06.171: ERROR/AndroidRuntime(375): java.lang.ExceptionInInitializerError
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at cx.hell.android.pdfview.OpenFileActivity.getPDF(OpenFileActivity.java:541)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at cx.hell.android.pdfview.OpenFileActivity.startPDF(OpenFileActivity.java:502)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at cx.hell.android.pdfview.OpenFileActivity.onCreate(OpenFileActivity.java:219)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.os.Looper.loop(Looper.java:123)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at android.app.ActivityThread.main(ActivityThread.java:4627)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at java.lang.reflect.Method.invokeNative(Native Method)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at java.lang.reflect.Method.invoke(Method.java:521)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at dalvik.system.NativeStart.main(Native Method)
07-03 10:18:06.171: ERROR/AndroidRuntime(375): Caused by: java.lang.UnsatisfiedLinkError: Library pdfview2 not found
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at java.lang.Runtime.loadLibrary(Runtime.java:461)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at java.lang.System.loadLibrary(System.java:557)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     at cx.hell.android.lib.pdf.PDF.<clinit>(PDF.java:25)
07-03 10:18:06.171: ERROR/AndroidRuntime(375):     ... 16 more

我怎样才能解决这个问题?

How can I fix it?

谢谢!

推荐答案

您需要添加.so文件在您的项目运行pdf.And这些文件只使用NDK进行的libs文件夹。请参考此链接

You need to add .so files in libs folder of your project to run pdf.And these files only be made using NDK. please refer this link

您缺少pdfview2库。

You are missing pdfview2 library.

编辑:
您可以从apk文件打造专业化.so文件,或者干脆extrect LIB文件。您可以从以下地址下载apk文件

you can buid .so files, or simply extrect lib files from the apk file. You can download apk file from

http://$c$c.google.com/p/apv/downloads/detail?name=apv-0.3.3dev01.apk&can=2&q=

打开.apk文件尤斯ZIP工具,并在项目中的.so文件复制。 :)

open .apk file ussing zip tool and copy the .so files in your project. :)

这篇关于实现PDF查看器有APV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆