DBDigital / nookdevs

Automatically exported from code.google.com/p/nookdevs Please note I am not a developer. I only created this to prevent the code from being lost with the shutdown of GoogleCode. If you wish to work on this, contact me and I will add you. :)
0 stars 0 forks source link

[apdfviewer] application misses a library #146

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. adb install apdfViewer.apk
2. open a pdf file with apdfviewer
3. goes back to the application that tried to launch pdf. adb logcat mentions 
problem loading libpdfview2

What is the expected output? What do you see instead?
pdf opened

What version of the product are you using? On what operating system?
apdfviewer Aug 11 

Please provide any additional information below.
libpdfview2.so needs to be pushed to solve the problem:
adb push libpdfview2.so /data/data/com.googlecode.apdfviewer/lib/libpdfview2.so

This person believes libpoppler_jni.so and reboot is also needed
http://nookdevs.com/APDFViewer#Issues_with_1.5_.28solved.29
But apdfviewer works fine for me righht after installing libpdfview2.so only.

Original issue reported on code.google.com by mare...@gmail.com on 9 Dec 2010 at 5:20

GoogleCodeExporter commented 8 years ago
I think this library is included in apk. I'll take a look and include it in the 
next apk if it's not there.

Original comment by hari.swa...@gmail.com on 9 Dec 2010 at 11:05

GoogleCodeExporter commented 8 years ago
libpdfview2.so is part of the apk, but apdfviewer cannot find it anyways unless 
it's installed separately.

here's a logcat if needed (i hope i got everything)
W/dalvikvm( 2167): Exception Ljava/lang/UnsatisfiedLinkError; thrown during 
Lcom/googlecode/apdfviewer/PDF;.<clinit>
W/dalvikvm( 2167): threadid=3: thread exiting with uncaught exception 
(group=0x4000fe68)
E/AndroidRuntime( 2167): Uncaught handler: thread main exiting due to uncaught 
exception
E/AndroidRuntime( 2167): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 2167):    at 
com.googlecode.apdfviewer.PDFView.openUri(PDFView.java:315)
E/AndroidRuntime( 2167):    at 
com.googlecode.apdfviewer.PDFViewerActivity.onCreate(PDFViewerActivity.java:88)
E/AndroidRuntime( 2167):    at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
E/AndroidRuntime( 2167):    at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2235)
E/AndroidRuntime( 2167):    at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2288)
E/AndroidRuntime( 2167):    at 
android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 2167):    at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
E/AndroidRuntime( 2167):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2167):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2167):    at 
android.app.ActivityThread.main(ActivityThread.java:3952)
E/AndroidRuntime( 2167):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 2167):    at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 2167):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
E/AndroidRuntime( 2167):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:545)
E/AndroidRuntime( 2167):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2167): Caused by: java.lang.UnsatisfiedLinkError: Library 
pdfview2 not found
E/AndroidRuntime( 2167):    at java.lang.Runtime.loadLibrary(Runtime.java:489)
E/AndroidRuntime( 2167):    at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime( 2167):    at com.googlecode.apdfviewer.PDF.<clinit>(PDF.java:31)
E/AndroidRuntime( 2167):    ... 15 more
E/ActivityManager( 1852): SUPPRESSING CRASH DIALOG.....

Another question I had was: does apdfviewer verrsion from Aug 11 need 
libpoppler_jni.so for anything?

Original comment by mare...@gmail.com on 10 Dec 2010 at 5:10