psiegman / epublib

a java library for reading and writing epub files
http://www.siegmann.nl/epublib
1.04k stars 313 forks source link

epublib problem with Android Lollipop #79

Open kartiraman opened 9 years ago

kartiraman commented 9 years ago

In Android, am using epublib to read epub files. Still last week it was working good but when I upgrade my Moto g2 mobile to Android Lollipop, epub reader is not working properly meaning It shows only few lines in webview but in all other mobile(till Android 4.4) its working.

Does it support Android Lollipop? Can you please guide me to solve this issue? Anyone having this kind of issue?

iambmelt commented 9 years ago

Hi @kartiraman - one of my dev devices (2012 Nexus 7) is running Lollipop (5.0.2) - I haven't encountered any problems specific to L.

Can you verify that it isn't a content issue exposed by the WebKit -> Chromium transition?

kartiraman commented 9 years ago

@iambmelt thanks for your reply. Sorry I don't know how to verify content issue but here I included Log. Can you please tell me how to check whether it is content issue or not?

Binding Chromium to main looper Looper (main, tid 1) {24e4acec} 01-29 17:38:08.076: I/LibraryLoader(31763): Expected native library version number "",actual native library version number "" 01-29 17:38:08.077: I/chromium(31763): [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0 01-29 17:38:08.086: I/BrowserStartupController(31763): Initializing chromium process, renderers=0 01-29 17:38:08.088: W/art(31763): Attempt to remove local handle scope entry from IRT, ignoring 01-29 17:38:08.099: W/AudioManagerAndroid(31763): Requires BLUETOOTH permission 01-29 17:38:08.100: W/chromium(31763): [WARNING:resource_bundle.cc(315)] locale_file_path.empty() 01-29 17:38:08.101: I/chromium(31763): [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=53 off=43788 len=2945 01-29 17:38:08.102: I/chromium(31763): [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:54 off:229536 len:643667 01-29 17:38:08.185: W/chromium(31763): [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup 01-29 17:38:08.186: W/chromium(31763): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation 01-29 17:38:08.212: W/art(31763): Attempt to remove local handle scope entry from IRT, ignoring 01-29 17:38:08.219: W/AwContents(31763): onDetachedFromWindow called when already detached. Ignoring 01-29 17:38:08.233: I/Choreographer(31763): Skipped 45 frames! The application may be doing too much work on its main thread. 01-29 17:38:08.601: I/chromium(31763): [INFO:SkFontConfigInterface_android.cpp(247)] ---- failed to open </system/fonts/CutiveMono.ttf> as a font 01-29 17:38:08.808: I/chromium(31763): [INFO:SkUtilsArm.cpp(179)] Device supports ARM NEON instructions! 01-29 17:38:09.645: I/Choreographer(31763): Skipped 46 frames! The application may be doing too much work on its main thread. 01-29 17:38:10.988: D/page(31763): file:///data/data/com.vidyasalai.Vidyasalai/app_unzipped/0/OEBPS/krishna viraja parivaram_sample1.xhtml 01-29 17:38:11.195: I/art(31763): Background partial concurrent mark sweep GC freed 5099(587KB) AllocSpace objects, 20(1440KB) LOS objects, 33% free, 31MB/47MB, paused 1.757ms total 108.119ms

iambmelt commented 9 years ago

@kartiraman I would render a guess that it has to with the path containing spaces, specifically where it says 'krishna viraja':

01-29 17:38:10.988: D/page(31763): file:///data/data/com.vidyasalai.Vidyasalai/app_unzipped/0/OEBPS/krishna viraja parivaram_sample1.xhtml

hope that helps!

kartiraman commented 9 years ago

@iambmelt thanks, but it shows few lines(around 30 lines) in eBook reader suppose if it is happening due to path issue then how it supposed to read few lines and also am having few books which does not have spaces that too has same problem. I edited this book name also but no luck:-(

Thanks

iambmelt commented 9 years ago

@kartiraman Out of curiosity, any chance you could post a screenshot?

kartiraman commented 9 years ago

@iambmelt yes, I attached Android 5.0.2 image, if you notice that ScrollView ends at the line "The brahmin, out of compassion, promised t" but till 4.4 it shows full content of the book as like in the image android_lollipop - android_kitkat

iambmelt commented 9 years ago

@kartiraman interesting... that is curious. How is it being loaded? are you loading the content as a buffered string through loadData()? Have you unzipped it and you load the html file through a relative path? Just trying to get a feel for whether or not this could be an issue with buffering or what...

troy28790 commented 8 years ago

hello there. Please help me, how can you use next/pre button to go to next/pre chapter? Please show me