Possible Duplicate:
Open PDF in Android
I would like to open a PDF file with Adobe Reader from my android application.
I've a PDF file in /mnt/sdcard called test.pdf, and I'm using the next code:
file = new File ("/mnt/sdcard/test.pdf");
if (file.exists())
{
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.fromFile(file));
intent.setType("application/pdf");
intent.setPackage("com.adobe.reader");
startActivity(intent);
}
Adobe Reader is opened when this code is executed, but the file is not opened. The file is valid.
What is the problem?