I’m trying to open a .pdf via a new Intent. The intent fires and the pdf app selection fires. When I select either app. The app displays ‘unable to open document’ I am passing data/data/com.android.providers.downloads/cache/document.pdf as the Uri which I am suspecting is the problem. There is no sd card. The pdf will open fine via the dowloads folder. Any help is appreciated.
Share
That file is not readable by third party applications.
Your main choices are to store the PDF on external storage (such as “the dowloads folder”), or to create a
ContentProviderthat can serve the file out of internal storage. This sample project demonstrates such aContentProvider.