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

java.io.FileNotFoundException: No content provider (Android) #266

Open
dpelluzi-darwin opened this issue Nov 30, 2023 · 4 comments
Open

Comments

@dpelluzi-darwin
Copy link

My app does a download and save the file in temporary directory.
I use a File object to pass its path in PDFView(filePath).
In iOS it works fine but in Android I got a java.io.FileNotFoundException: No content provider.
In Android, the path is somethine like /data/data/my.app/cache/file.pdf.

I figured out that I have to pass file://<file_path> in PDVView() to show it in Android, but not in iOS.

Is there any solution that works in both platform?

@belyaj
Copy link

belyaj commented Jan 31, 2024

I have the same problem

@thirstyde
Copy link

I have the same problem.

@yfming93
Copy link

yfming93 commented Jul 4, 2024

I have the same problem.
java.io.FileNotFoundException: No content provider

@wgziOS
Copy link

wgziOS commented Oct 31, 2024

I have the same problem

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

No branches or pull requests

5 participants