title: How do I determine if Android can handle PDF
body: <p>I know Android cannot handle PDFs natively. However, the Nexus One (and possibly other phones) come pre-installed with QuickOffice Viewer.  How would I determine whether the user has a PDF viewer installed?</p>
  
  <p>Currently, the code to start the PDF download looks pretty simple:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setData(Uri.parse(url));
  startActivity(intent);
  </code></pre>
  
  <p>After the download, the user clicks on the downloaded file to invoke the viewer.
  However, if there is no PDF viewer, Android reports "Cannot download.  The content is not supported on the phone."
  I want to determine if the user will get this message, and if so, direct them to PDF apps in the Android Market.</p>