FolioReader-Android
FolioReader-Android copied to clipboard
Book Cover Image is not displying
Thanks for the awesome library, I just want to know why my Book Cover is not getting displayed in Android.
This solution is a little hacky
Folio base url file path is getting wrong. You will have to change the code to make it work.
Working Solution:
//FolioPageFragment -> initWebView method change the code
if(opfPath != null){
String baseUrl
= "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName) + "/" + opfPath + "//";
mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
}else{
String baseUrl
= "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName) + "//";
mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null);
}
the above solution isn't working for me
@nikita2423 @vikasrairajput @ravigupta9363
how can i get image in epub file. i am show in epub cover image in recyclerview book list
This solution is a little hacky
Folio base url file path is getting wrong. You will have to change the code to make it work.
Working Solution:
//FolioPageFragment -> initWebView method change the code if(opfPath != null){ String baseUrl = "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName) + "/" + opfPath + "//"; mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null); }else{ String baseUrl = "file://" + FileUtil.getFolioEpubFolderPath(mEpubFileName) + "//"; mWebview.loadDataWithBaseURL(baseUrl, htmlContent, "text/html", "UTF-8", null); }
Sorry! I am also facing this problem with folio reader, can you tell me where to put those code...