anfengde / anfengde_epub Goto Github PK
View Code? Open in Web Editor NEWEPUB 3.0 SDK for Android and iPhone, Offical team site : http://epub.anfengde.com
EPUB 3.0 SDK for Android and iPhone, Offical team site : http://epub.anfengde.com
I've add the Japanese books which is download from "http://code.google.com/p/epub-samples/downloads/detail?name=kusamakura-japanese-vertical-writing-20121124.epub" to the project.
Built the project and run on iPhone, It shows the first page of each chapter.
When I try to scroll to left to show next page, the message "The first chapter!" pops up.
When I try to scroll to right, nothing is shown in the screen.
Is it the problem that the book is reading right to left, but the UI can only scroll left to right?
Hi, Thanks for your quick replies.
I got this error. And when i click Add button on application there is nothing happen and console shown me this error.
Uncaught TypeError: Object [object Object] has no method 'getAllBooks' at file:///sdcard/epub/js/jindex.js:209
Hello, When i open CallEPUBUI Sample on Android 4.2.2
then appear "import error!!" message.
it seems to can't load libepubjni.so on Android 4.2.2.
Please, Help.
Hi,
After compiling and testing the sample app, the bookshelf shows no book and all the three buttons (back, add, edit) are unresponsive. Kindly help out. and i get this errors from logCat
"08-20 15:47:15.143: E/dalvikvm(9282): adjustAdaptiveCoef max=6291456, min=1572864, ut=568
08-20 15:47:15.166: E/dalvikvm(9282): adjustAdaptiveCoef max=8388608, min=2097152, ut=368
08-20 15:47:19.744: E/Web Console(9282): Uncaught TypeError: Object [object Object] has no method 'getAllBooks':209
"
Hi,
this is for the iOS SDK.
I got the error above for a free "Sherlock Holmes" epub found here:
https://app.box.com/s/kuxyg59zrll912b3kzif
Other ebooks work perfectly. And this epub also works if I change the epub extension to zip and
open it on the my Mac.
Otherwise the SDK works perfectly. Thanks so much.
Best Regards
How can i change librar theme? In raw folder you got some html codes, but when i change them with mine, application doesnt work.
First of all I want to appreciate that what an awesome product you have just developed but now I want some help that I want to load the content of an epub book without using the UI component of the sdk .
You guys don't provide access to the UI component classes of your UI sdk and in your UI component sample the files are loading from the assets folder. I want the files to be loaded directly from a mobile file explorer path instead from the assets folder so is there any way your sdk can provide that because I can not change you bookinit() function in bookview class and if I use you EPUBJNI loader it does not give me a sample of how to load the content of book using your sdk .
So help please, I am making an epub reader and my back is against the wall.
Dear AnFengDe,
Thank you for offering this good sdk, I have followed the tutorial on the page
http://epub.anfengde.com/2012/08/09/getting-started-with-epub-sdk/
But when I want to add BookView in my Activity, it shows "BookView cannot be resolved to a type".
I had imported EPUB_UI as a library already. is there anything I haven't done yet?
Thank you very much!
------ update 2014/09/20-------
I found that if I remove appcompat_v7 which is the library auto import when I open a new Activity, I can find the BookView. But I should use appcompat_v7, how can I solve it? Thanks!
I want to provide my own library list in an Activity and use AnFengDe for just reading the epub files, kindly guide me in the right direction.
I have already seen the docs at http://epub.anfengde.com/epub_ui_android_doc/
and have already got the example app with the bookView and the SDK sample app working, but I am not able to proceed in the required direction.
I think using the book view I would be forced to use the library as well, thus I am willing to use just the SDK and not android UI, but couldn't find any documentation for the SDK.
When i run the ui sample, all the time after splash screen it closes.
I compile and run latest CallEPubUI sample. It successfully open the book, but it is impossible to turn pages. When i swipe screen page stop on half first and half second pages.
as i know the sdk has the ad.so ,i want remove it .how can do it ? Thanks.
when the layout that contains the EPubWebView or BookView it makes an exception "java.lang.NoClassDefFoundError: com.anfengde.epub.ui.R$layout"
what's this error? i added all the stuff in the lib folder to the project
Hello,
I'm testing a android application and I'm having this problem that while I'm in book reading I would like to press the Back button and the application return to my own Book Shelf without openning the Anfengde Book Shelf. I have already tryied to force open an Activity with onBackPressed() function but it does not work. How can I do that?
Thanks for your support!
Hi, your project is wonderful, i have succesfully open book on device, but i found a problem when try to open book on emulator, i got unknown error, I use android intel emulator, run on windows 8.1, please help
I created a simple epub 3.0 & added to CallEpubUI sample app.
My epub file is passed latest EpubCheck without error.
But the Android app shows "Import epub error" and then "Failed to access the file".
Hi,
I keep getting a "error code is -29" everytime i try to use the sample project.
What is going wrong?
int ret = [EPubONI openEPubBook:epubFilePath];
ret is always = 0
I checked the filepath and file, both are valid.
There's been the same issue seven month ago, but closed by owner without comment.
What can I do to solve?
Thx
Hello guys!
My name is Lukasz and I am a head of of development team that is responsible for delivery of internal EPUB mobile reader. I made research on the web and found your SDK, and I have to say that you done great job!
Unfortunately, when I compiled your CallEPubUI project for Android and tried to import EPUB file from following link:
https://epub-samples.googlecode.com/files/GhV-oeb-page-20121015.epub
application crashed immediately each time I tried to import.
Last LOGCAT messages:
03-14 09:00:49.785: D/GestureDetector(18640): [Surface Touch Event] mSweepDown False, mLRSDCnt : -1 mTouchCnt : 4 mFalseSizeCnt:0
03-14 09:00:49.790: V/webview(18640): singleCursorHandlerTouchEvent -getEditableSupport FASLE
03-14 09:00:50.165: A/libc(18640): @@@ ABORTING: INVALID HEAP ADDRESS IN dlfree addr=0x5a29df40
03-14 09:00:50.165: A/libc(18640): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 18668 (WebViewCoreThre)
Tested on Samsung Galaxy Note 2, Android 4.1.2. Code was cloned from your GitHub.
Could you help me in tracking the problem down?
Looking forward for your reply.
Best regards,
Łukasz Czarnecki
I've got this error when trying android example
01-29 09:28:14.914: E/AndroidRuntime(712): FATAL EXCEPTION: main
01-29 09:28:14.914: E/AndroidRuntime(712): java.lang.ExceptionInInitializerError
01-29 09:28:14.914: E/AndroidRuntime(712): at com.anfengde.epub_sdk_example.ExampleActivity.init(ExampleActivity.java:130)
01-29 09:28:14.914: E/AndroidRuntime(712): at com.anfengde.epub_sdk_example.ExampleActivity.onCreate(ExampleActivity.java:59)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.Activity.performCreate(Activity.java:5008)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.ActivityThread.access$600(ActivityThread.java:130)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.os.Handler.dispatchMessage(Handler.java:99)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.os.Looper.loop(Looper.java:137)
01-29 09:28:14.914: E/AndroidRuntime(712): at android.app.ActivityThread.main(ActivityThread.java:4745)
01-29 09:28:14.914: E/AndroidRuntime(712): at java.lang.reflect.Method.invokeNative(Native Method)
01-29 09:28:14.914: E/AndroidRuntime(712): at java.lang.reflect.Method.invoke(Method.java:511)
01-29 09:28:14.914: E/AndroidRuntime(712): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
01-29 09:28:14.914: E/AndroidRuntime(712): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
01-29 09:28:14.914: E/AndroidRuntime(712): at dalvik.system.NativeStart.main(Native Method)
01-29 09:28:14.914: E/AndroidRuntime(712): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load epubjni: findLibrary returned null
01-29 09:28:14.914: E/AndroidRuntime(712): at java.lang.Runtime.loadLibrary(Runtime.java:365)
01-29 09:28:14.914: E/AndroidRuntime(712): at java.lang.System.loadLibrary(System.java:535)
01-29 09:28:14.914: E/AndroidRuntime(712): at com.anfengde.epub.EPubJNI.(Unknown Source)
I didn't see if the SDK has the supports for fixed layout.
Thanks.
Hi, I run your ui component but nothing happened. and i looked the code, add button is not working and jdb.js is not found. where can i get this jdb.js
Hi,
the SDK is working perfectly for me.
The only problem I see is that linking generates a lot of warnings.
Probably some setting in the library during build.
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/epub.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/epub_comm.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/epub_error.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/epub_parse.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/EPubChapter.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/EPubMetadata.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/AnFengDe_EPUB_SDK.build/Objects-normal/armv7/EPubONI.o unable to open object file
warning: (armv7) /Users/anfengde/Documents/01_work/01_develope/xhpm-epub3/src/epub_sdk/ios/build/EPUB_SDK.build/Release-iphoneos/
etc.
I'm using only the AnFengDE_EPUB_SDK.framework, not the UI framework if that is of any help.
I pull the code and find EPUB_UI doesn't has the src dir, and the CallEPubUI can not work, pls help me to make it work, thanks a lot.
try this one which is ePub v3 :
https://push.bigtincan.com/files/3ebea09a-44bd-11e2-9bec-4040eae9459f.epub
it does not show any errors in console.
I saw a paramater on BooView class but it is private so i couldnt set it false. Is that any method to disable ads?
Thanks
Hi.
Congratulations for the project.
when I try to open my epub, I get this error.
What does this error?
What can I do?
Thank you very much.
i just only need this option.but i do not know how to change your sdk .
please tell me . i need EPubRootViewController.m
Hi,
I'm trying iOS example and got a Mach-O linker error. Impossible to build the projet on XCode 6.1.1.
Any solution ?
Best regards.
I have a problem in reading arabic epub files because of the direction of language and the handling of the ciew .
So, my question is can i edit in the library source code.
Hello! I followed
"http://epub.anfengde.com/2012/08/09/getting-started-with-epub-ui-component/"
this page to build an android app..
But after I finished the steps,I could't see this...
Instead, my screen is like this..
and can't add books on the bookshelf
Can you tell me how to add books and where should I put the ".epub" file?
Thanks!
Hi
greatly appreciate your work here! However, following your tutorial I can not see any of my books in the shelf on Android devices using anything newer than 4.1. It works on my old Note 1 but not on Nexus 5 or Galaxy Tab S. No errors, they simply do not show up.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.