Skip to content
Hrishikesh Kadam edited this page Apr 27, 2018 · 17 revisions

FolioReader logo

Welcome to the FolioReader-Android wiki!

FolioReader-Android is an ePub reader and parser framework written in Java.

Usage

First add activity tag for FolioActivity in your AndroidManifest.xml

<activity
    android:name="com.folioreader.ui.folio.activity.FolioActivity"
    android:configChanges="orientation|screenSize"
    android:theme="@style/AppTheme.NoActionBar"/>

To use FolioReader, get singleton object of FolioReader.

FolioReader folioReader = FolioReader.getInstance(getApplicationContext());

Call the function openBook().

opening book from assets
folioReader.openBook("file:///android_asset/adventures.epub");
opening book from raw
folioReader.openBook(R.raw.barrett);