-
Notifications
You must be signed in to change notification settings - Fork 720
Home
Hrishikesh Kadam edited this page May 4, 2018
·
17 revisions
FolioReader-Android is an ePub reader written in Java.
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"
}
}
}
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().
folioReader.openBook("file:///android_asset/adventures.epub");
folioReader.openBook(R.raw.barrett);