Android 从https在adobe reader中打开pdf

Android 从https在adobe reader中打开pdf,android,pdf,adobe-reader,Android,Pdf,Adobe Reader,这给了我toast消息错误:无法打开文档: 这很有效: Intent adobeIntent = getPackageManager().getLaunchIntentForPackage("com.adobe.reader"); if (adobeIntent != null) { adobeIntent.setDataAndType(Uri.parse("http://www.adobe.com/enterprise/accessibility/pdfs/acro6_pg_ue.pd

这给了我toast消息错误:无法打开文档:

这很有效:

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);
}

我是否缺少一个参数,还是根本不可能?

在查看PDF时,不要使用getLaunchIntentForPackage。例如,Adobe Reader的launcher活动不是PDF查看活动。请使用ACTION_VIEW。http和httpsIf之间的区别如果我使用ACTION_VIEW,我将无法使用https在adobe reader中打开文件-我不想在adobe reader或其他兼容的pdf阅读器中打开文件
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);
}