android cannot open downloaded file
<p>I successfully download a pdf file from the internet and then I open the downloads folder using the following Intent:</p>

<pre><code>Intent pdfFileIntent = new Intent();
pdfFileIntent.setAction(DownloadManager.ACTION_VIEW_DOWNLOADS);
ctx.startActivity(pdfFileIntent);
</code></pre>

<p>This code is located within the onReceive() method of a BroadcastReceiver I created to deal with download complete events.
The download is complete and successful (I can see the download status in the downloads folder, which is opened right after the download is complete, as expected). However, when I click the newly downloaded file, another dialog pops up which requests me to select the application with which the file will be opened (I can select either Adobe Reader or Quickoffice). When I select Adobe Reader, I get the error : "The document path is not valid" and when I select Quickoffice, I get the error: "File cannot be opened".</p>

<p>This is terribly annoying especially because the downloads folder and the download process and management of downloaded files is completely out of my hands - Android is aware of the files in the downloads directory when it presents them to me, so how can it be that it doesn't pass a valid path? What is going on?
To make things clear, I didn't specify any path in my code - Android chose the path in which to save the file. And I can even see that the file has a reasonable size in KBs, which means it's not empty and it's definitely a pdf file (.pdf extension).</p>

<p>Please help. Thanks in advance.</p>
