Open pdf in adobe reader from https

156 views Asked by At

This gives me the toast message error: Document could not be opened:

Intent adobeIntent = getPackageManager().getLaunchIntentForPackage("com.adobe.reader");
if (adobeIntent != null) {
    adobeIntent.setDataAndType(Uri.parse("https://www.adobe.com/enterprise/accessibility/pdfs/acro6_pg_ue.pdf"), "application/pdf");
    startActivity(adobeIntent);
}

And this is working fine:

Intent adobeIntent = getPackageManager().getLaunchIntentForPackage("com.adobe.reader");
if (adobeIntent != null) {
    adobeIntent.setDataAndType(Uri.parse("http://www.adobe.com/enterprise/accessibility/pdfs/acro6_pg_ue.pdf"), "application/pdf");
    startActivity(adobeIntent);
}

Am I missing a parameter or is it simply not possible?

0

There are 0 answers