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

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

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