GithubHelp home page GithubHelp logo

anfengde / anfengde_epub Goto Github PK

View Code? Open in Web Editor NEW
147.0 147.0 80.0 77.31 MB

EPUB 3.0 SDK for Android and iPhone, Offical team site : http://epub.anfengde.com

Java 11.34% JavaScript 58.65% CSS 11.36% Objective-C 14.67% C 3.98%

anfengde_epub's People

Contributors

anfengde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anfengde_epub's Issues

EPUB SDK Example Not working

Hi ,

I am not able to see contents of any chapter when I run IOS EPUB SDK example. If I click any chapter , It is not navigating to contents of the chapter. I have attached the screenshot of the issue.

screen shot 2013-10-16 at 8 49 27 am

Thanks,
Deva

Open Vertical Writing Books With Strange Pagination For UI_Example Project

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?

Has no method getAllBooks()

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

Sample app could not load books

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
"

About library theme

How can i change librar theme? In raw folder you got some html codes, but when i change them with mine, application doesnt work.

Load book content without using the UI component of AnFengDe_EPUB Sdk

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.

BookView cannot be resolved to a type

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!

Use AnFengDe Epub sdk for only reading epub on Android

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.

Error on inflating the reader layout

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

Exit Book Reader without entering Anfengde Book Shelf

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!

Unknown Error when open book on Emulator

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

Epub SDK shows error

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".

Sampel project does not works

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

https://epub-samples.googlecode.com/files/GhV-oeb-page-20121015.epub application crashed immediately each time I tried to import

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

Error when launching Android example

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)

jdb.js not found

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

unable to open object file

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.

How can i disable google ads?

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

I get an error: error code -24

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.

iOS Example apps return errors

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.

Arabic Problem

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.

No books in shelf on newer Android versions

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.