开发者

ePub library for java or android

Is there any library to read ePub format? I found eP开发者_Go百科ublib in http://github.com/psiegman/epublib. I'm still learning how to use it.

Is there ePub jar which works for Android?


I am the author of epublib. It now runs on Android. See http://www.siegmann.nl/epublib/android


You can use Folio Reader for this purpose. To use , add this to gradle:

compile 'com.folioreader:folioreader:0.2.5'

And if you have the .epub file in assets folder, you can load the file as :

Intent intent = new Intent(HomeActivity.this, FolioActivity.class);
intent.putExtra(FolioActivity.INTENT_EPUB_SOURCE_TYPE, FolioActivity.EpubSourceType.ASSESTS);
intent.putExtra(FolioActivity.INTENT_EPUB_SOURCE_PATH, "epub/The Silver Chair.epub");
startActivity(intent);

The library and sample is available [here].

The other available alternatives are:

  • Readium
  • epub3reader
  • android ePub Library


You can use one of the best epub sdk I found for epub, its also available for iOS ad desktop. Please check it here

//Example for playingn epub from asset folder. ls.installBook("file://android_asset/books/epub_cgfirstwordsattheaquarium.epub");

//Example for playing epub fromm network. ls.startDownload("http://scs.skyepub.net/samples/Alice.epub","","Alice's Adventures","Lewis Carroll");

//ls is an object of LocalService class which extends Service class.Please check sdk for complete information.

Github link https://github.com/xunuosi/SkyEpubForAndroid

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜