Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open EPUB #98

Open
jdempcy opened this issue Jul 7, 2016 · 4 comments
Open

How to open EPUB #98

jdempcy opened this issue Jul 7, 2016 · 4 comments

Comments

@jdempcy
Copy link

jdempcy commented Jul 7, 2016

This issue is a Question

Expected Behaviour

Open SDKLauncher-Android and be able to view an EPUB

Observed behaviour

Instead, it tells me that it cannot find any EPUBs at a certain location on the local storage (not SD card). I am unable to put files in that location as it is an illegal path.

Steps to reproduce

  1. First, open SDKLauncher-Android
  2. Then notice that it tells you to put EPUBs in /storage/emulated/0/epubtest which is an invalid path (since "0" is not a valid folder name)

Product

  • Native application (Readium SDK C++)
    • Official "launcher" sample
    • Android—many versions; pulled from 'develop', June 10th 2016: version bump to 0.24.0-alpha

Additional information

Here is my original post to the Readium Slack channel

Has anyone gotten SDKLauncher-Android working lately? I’ve tested on a couple of devices and it gives me the toast message:

"/storage/emulated/0/epubtest is empty, copy epub3 test file please.”

However, I cannot create a folder named “0” as that is an illegal filename. And I have tried putting symlinks from within /storage to the SD card but they are apparently not followed. I have also tried changing the path where it looks to absolute paths on the SD card but again, no dice. I also added an intent to AndroidManifest.xml to be able to open EPUB with SDKLauncher-Android but I must’ve done it wrong, as it crashes when I try that.

@jdempcy
Copy link
Author

jdempcy commented Jul 7, 2016

Daniel solved this! Thanks, Daniel!

EPUBs must be placed within the SD card's "epubtest" folder. On my device, the path is "/sdcard/epubtest" — not "/storage/emulated/0/epubtest" as it was saying.

As soon as I placed EPUBs within the epubtest folder of the SD card, everything worked fine!

@jdempcy jdempcy closed this as completed Jul 7, 2016
@msintov
Copy link

msintov commented Jul 7, 2016

I've been bitten by this as well a couple times in the past.

Could the toast text be changed to more accurately specify the folder location? Is it OK to change it to "/sdcard/epubtest" or is that not always correct?

@rkwright
Copy link
Member

rkwright commented Jul 8, 2016

Sounds reasonable to me. I am OK with this change.

@rkwright rkwright reopened this Jul 8, 2016
@danielweck
Copy link
Member

/storage/emulated/0/epubtest vs. /sdcard/epubtest
(same destination, different filesystem mount on some devices)
...the woes of Android FS, symbolic links, Java API etc.

but yes, I agree that the error message needs to help the user / tester fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants