FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.25k stars 718 forks source link

Unable to open downloaded epub file #318

Closed jayesh28589 closed 5 years ago

jayesh28589 commented 5 years ago

Hello,

when I open my downloaded epub file.

var folioReader : FolioReader = FolioReader.get() folioReader.openBook(file.path)

It's giving me this error.

E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/android.selection.js

Can you please help me to fix this ?

Thanks.

hrishikesh-kadam commented 5 years ago

Sure. Can you please first yourself close #315 if it is resolved.

Now about this error. Does it crashes your app? Also read more about this in #301

jayesh28589 commented 5 years ago

Hello hrishikesh,

I will close #315 .

It does not crash the app, But it does not open downloaded epub file and in logcat it is showing above error.

Thanks.

hrishikesh-kadam commented 5 years ago

@jayesh28589 Can you submit EPUB file for further investigation?

jayesh28589 commented 5 years ago

@hrishikesh-kadam ,

Yes, Sure

Below is the link for epub file.

https://drive.google.com/file/d/1xx1F3iNcumqcLH_CnAhjcy3dQrpoEpZO/view?usp=sharing

Thanks

hrishikesh-kadam commented 5 years ago

It does not crash the app, But it does not open downloaded epub file and in logcat it is showing above error.

@jayesh28589 It does open the above attached EPUB with just one error of Unable to open asset URL: file:///android_asset/android.selection.js, which is actually just a warning than error.

jayesh28589 commented 5 years ago

Ok, thats ok, but epub file is not opening in epub reader.

what can be issue ?

hrishikesh-kadam commented 5 years ago

@jayesh28589 Does it crash or you just see blank white page?

jayesh28589 commented 5 years ago

I just see blank white page.

hrishikesh-kadam commented 5 years ago

Ya, so just click on the app, and the app bar will hide, and you will see the content of your ebook which only has one line "Dummy PDF download".

jayesh28589 commented 5 years ago

Ok, got it, let me check same case with other epub file also, then I will close the issue.

Thanks for your time and effort.