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
Loading file form Assets #26
Comments
PDF cannot be loaded from Assets folder. You should copy it on sdcard before opening it. |
I have uploaded code which is tested on device and emulator also. you may see following link: |
I have downloaded pdf file saved on external storage, its still showing loading indicator and not showing pdf |
The files in the assets directory doesent get unpacked. Instead they are read directly from the .apk file. Something like this: public String getAssetsPdfPath(Context context) { try { return destinationFile.getPath(); And that's it. Hope this helps anyone. Cheers. |
It doesn't open files from Assets. When the PDF activity open it shows a Loading dialog and do nothing!
The text was updated successfully, but these errors were encountered: