-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages are completely blank in case of SDK Launcher - Android #27
Comments
I have just successfully tested SDK-Launcher-Android. A clean build from the develop branches of all 3 repositories involved. I am able to read reflow and fixed layout EPUBs. I'm on Mac OSX (Yosemite), latest version of Eclipse (standard/SDK), latest update from Android SDK manager, latest NDK r10c (make sure to configure path in Eclipse preferences), targeting API 19 / Android 4.4.x (default is API 11), and using NDK toolchain version 4.9 (default is 4.8). I'll push my config files to the repository in a minute. |
@danielweck 1.Is there any issue with using default NDK toolchain? Thanks. |
Nowadays I do not build the epub3 native lib from the command line anymore, although I do check that it "cleans" properly:
Then, I use Eclipse to build the lib, wait until it's done, then debug the launcher app. I had libxml compiler issues with toolchain 4.8, so I switched to 4.9 and it worked. My tablet is old and slow (Samsung Galaxy Tab 7" GT-P1000), but the Chromium WebView renders content correctly (CyanogenMod ROM 4.4.4 KitKat). I pushed my config to the develop branch, see if it helps? /Dan |
PS: yes, I use regular tests EPUBs under the normal SDCARD directory, in addition to some private (commercial) ebooks. Fixed layout and reflow. All works fine, including landscape / portrait rotation (viewport orientation to test-refresh the WebView). |
The config changes I pushed to develop (to be honest, not sure what Eclipse updated in .cproject ?): |
Thanks @danielweck , Finally i am able to render epub3 books on my device's screen. I copy and pasted readium-shared-js folder under assests folder along with all its content, where code was trying to find it. Just wanting to check another thing with you, in eclipse while launching sample launcher application, it crashes just after splash screen (showing this error in logcat - java.lang.java.lang.exceptionininitializererror due to line "System.loadLibrary(epub3);"). Well, it got solved on my system by some way(i cudn't figure it out yet). Please tell me if there is any information about it. Thanks Again. |
@kapilkmr8 Glad to hear you got it to work! I assume you are not using Readium's Eclipse project? (which automatically includes the readium-shared-js folder) ... or perhaps you did not initialise/update the readium-shared-js git submodule? The epub3 library loader should work fine if you make sure to include the corresponding project inside your Eclipse workspace (SDK launcher app + epub lib). |
hi @danielweck , |
Hello @sushj are you on Windows? Now, to make your life easier (and because Eclipse has been deprecated by Google for Android development, in favour of AndroidStudio), I would suggest using the Gradle "experimental" branch: |
Hi @danielweck ,
|
Hello, what is your installed NDK version, and is it picked-up correctly by AndroidStudio and the Graddle build? |
Hi @danielweck, |
Hi all geeks,
I successfully built project on Windows (for Android). After following all instructions there on github, i run application(SDK Launcher-Android) on my Samsung galaxy tab 2 10.1 (gt-p5113 )(Android 4.2.2) and Samsung galaxy tab 750 (gt-p7500)(Android 4.0.4).
On both devices, it is showing complete blank pages without any error for every epub3.
I also made changes to 3 files as stated on github pull request.
But even after that it is showing complete blank pages.
Kindly guide and help as soon as possible as it is urgent for me.
@rkwright
The text was updated successfully, but these errors were encountered: