android - Open pdf in adobe reader from https -
this gives me toast message error: document not 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 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 missing parameter or not possible?
Comments
Post a Comment