Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been trying to work with PDFview library in Android studio. I have implemented the from asset and it's working perfectly. But what I want to do is try to pick any PDF file on my device and then view it in the app. According to what I have gathered,

After selecting a PDF file from my device, I get a blank screen. I have Search for examples on this but couldn't find


What I have tried:

File file = new File(Environment.getExternalStorageDirectory().toString()); pdfView.fomFile(file).load();
Posted
Updated 16-Aug-18 5:16am

1 solution

A "directory" name is not going to work when you're supposed to supply a "file name".

sd card - Android how to use Environment.getExternalStorageDirectory() - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900