Skip to content
Hrishikesh Kadam edited this page May 4, 2018 · 17 revisions

FolioReader logo

Welcome to the FolioReader-Android Wiki!

FolioReader-Android is an ePub reader written in Java.

Gradle

Add following dependency to your app build.gradle:

compile 'com.folioreader:folioreader:0.3.8'

Add maven repository to your top level build.gradle:

allprojects {
    repositories {
        maven {
            url "http://dl.bintray.com/mobisystech/maven"
        }
    }
}

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

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);