我一直在研究MuPdf库,最后我能够在创建libmupdf.so文件并使用Cygwin和android-ndk之后在我的设备上安装它。 但我仍然面临一个问题......应用程序安装在设备上,我得到了各种pdf的列表我已经在我的设备上,我点击任何人,但它不是渲染和显示在查看器上,它试图渲染,然后我再次得到pdf的列表,而没有让我的pdf查看。
Ny的想法,什么都出错......
04-23 14:44:36.741: D/dalvikvm(11539): Debugger has detached; object registry had 1 entries
04-23 14:44:47.411: I/System.out(11539): Trying to open /mnt/sdcard/Download/BecomeAnXcoder.pdf
04-23 14:44:47.411: D/dalvikvm(11539): Trying to load lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051ebc8
04-23 14:44:47.411: D/dalvikvm(11539): Added shared lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051ebc8
04-23 14:44:47.411: D/dalvikvm(11539): No JNI_OnLoad found in /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051ebc8, skipping init
04-23 14:44:47.421: E/libmupdf(11539): Opening document...
04-23 14:44:47.421: E/libmupdf(11539): Done!
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:44:47.451: I/[POST_RESELECT](11539): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:44:47.621: E/libmupdf(11539): Goto page 0...
04-23 14:44:47.741: E/libmupdf(11539): PageWidth=1191
04-23 14:44:47.741: E/libmupdf(11539): PageHeight=1684
04-23 14:44:47.741: D/dalvikvm(11539): GC_EXTERNAL_ALLOC freed 133K, 48% free 2864K/5447K, external 0K/0K, paused 68ms
04-23 14:44:47.761: E/libmupdf(11539): Goto page 1...
04-23 14:44:47.871: E/libmupdf(11539): PageWidth=1191
04-23 14:44:47.871: E/libmupdf(11539): PageHeight=1684
04-23 14:44:47.871: D/dalvikvm(11539): GC_EXTERNAL_ALLOC freed 17K, 48% free 2849K/5447K, external 62K/574K, paused 96ms
04-23 14:44:47.901: E/libmupdf(11539): Goto page 0...
04-23 14:44:48.021: E/libmupdf(11539): PageWidth=1191
04-23 14:44:48.021: E/libmupdf(11539): PageHeight=1684
04-23 14:44:48.021: I/libmupdf(11539): In native method
04-23 14:44:48.021: D/dalvikvm(11539): GC_EXTERNAL_ALLOC freed 9K, 48% free 2852K/5447K, external 627K/1139K, paused 57ms
04-23 14:44:48.021: I/libmupdf(11539): Checking format
04-23 14:44:48.021: I/libmupdf(11539): locking pixels
04-23 14:44:48.021: E/libmupdf(11539): Rendering page=320x452 patch=[0,0,320,452]
04-23 14:44:50.951: W/KeyCharacterMap(11604): Can't open keycharmap file
04-23 14:44:50.951: W/KeyCharacterMap(11604): Error loading keycharmap file '/system/usr/keychars/cy8c-touchscreen.kcm.bin'. hw.keyboards.65537.devname='cy8c-touchscreen'
04-23 14:44:50.951: I/KeyCharacterMap(11604): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
04-23 14:45:28.941: D/dalvikvm(11675): GC_EXTERNAL_ALLOC freed 59K, 49% free 2765K/5379K, external 0K/0K, paused 54ms
04-23 14:45:37.901: I/System.out(11675): Trying to open /mnt/sdcard/Download/1430236051iOS5SDK.pdf
04-23 14:45:37.901: D/dalvikvm(11675): Trying to load lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051f240
04-23 14:45:37.911: D/dalvikvm(11675): Added shared lib /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051f240
04-23 14:45:37.911: D/dalvikvm(11675): No JNI_OnLoad found in /data/data/com.artifex.mupdf/lib/libmupdf.so 0x4051f240, skipping init
04-23 14:45:37.911: E/libmupdf(11675): Opening document...
04-23 14:45:37.941: E/libmupdf(11675): Done!
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:45:37.961: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$START@40103c78,-1,0,-1,0)
04-23 14:45:37.971: I/[POST_RESELECT](11675): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=(android.text.Selection$END@4013faa8,-1,0,-1,0)
04-23 14:45:38.581: E/libmupdf(11675): Goto page 0...
04-23 14:45:38.581: E/libmupdf(11675): PageWidth=1230
04-23 14:45:38.601: E/libmupdf(11675): PageHeight=1514
04-23 14:45:38.601: E/libmupdf(11675): Goto page 1...
04-23 14:45:38.781: D/dalvikvm(11675): GC_EXTERNAL_ALLOC freed 59K, 47% free 2851K/5379K, external 91K/541K, paused 92ms
04-23 14:45:38.881: D/dalvikvm(11675): GC_EXTERNAL_ALLOC freed 5K, 48% free 2850K/5379K, external 583K/1095K, paused 86ms
04-23 14:45:38.991: E/libmupdf(11675): PageWidth=1082
04-23 14:45:38.991: E/libmupdf(11675): PageHeight=1332
04-23 14:45:38.991: E/libmupdf(11675): Goto page 0...
04-23 14:45:38.991: E/libmupdf(11675): PageWidth=1230
04-23 14:45:39.001: E/libmupdf(11675): PageHeight=1514
04-23 14:45:39.001: I/libmupdf(11675): In native method
04-23 14:45:39.001: I/libmupdf(11675): Checking format
04-23 14:45:39.001: I/libmupdf(11675): locking pixels
04-23 14:45:39.001: E/libmupdf(11675): Rendering page=320x393 patch=[0,0,320,393]
04-23 14:45:39.801: E/libmupdf(11675): Rendered
04-23 14:45:39.801: I/libmupdf(11675): In native method
04-23 14:45:39.801: I/libmupdf(11675): Checking format
04-23 14:45:39.801: I/libmupdf(11675): locking pixels
04-23 14:45:39.801: E/libmupdf(11675): Rendering page=320x455 patch=[0,0,320,455]
04-23 14:45:40.201: E/libmupdf(11675): Rendered
04-23 14:45:40.201: E/libmupdf(11675): Goto page 1...
04-23 14:45:40.201: E/libmupdf(11675): PageWidth=1082
04-23 14:45:40.231: E/libmupdf(11675): PageHeight=1332
04-23 14:45:40.231: I/libmupdf(11675): In native method
04-23 14:45:40.231: I/libmupdf(11675): Checking format
04-23 14:45:40.231: I/libmupdf(11675): locking pixels
04-23 14:45:40.231: E/libmupdf(11675): Rendering page=320x393 patch=[0,0,320,393]
答案 0 :(得分:0)
你在模拟器上运行它.. ??? 如果是,则发布logcat输出... &安培;你是否使用muPdf创建自己的应用程序,因为只有muPdf无法呈现PDF ..
看到这些应用程序是免费的..
试试这些