简体   繁体   English

Android设置默认选项以打开PDF

[英]Android setting default option to open pdf

I am opening a pdf document from my app. 我正在从我的应用程序打开一个pdf文档。 I have quickoffice and Acrobat reader on my tablet. 我的平板电脑上装有quickoffice和Acrobat Reader。 Whenever I try to open the document, it shows me 3 options, qucioffice, acrobat and my app name (i don't know why it shows my app name). 每当我尝试打开文档时,它都会向我显示3个选项,qucioffice,acrobat和我的应用程序名称(我不知道为什么它显示我的应用程序名称)。 Can I set a default option to acrobat and get rid of the options ? 我可以将默认选项设置为acrobat并摆脱这些选项吗? I know, I can check the selection box to set a defalut option. 我知道,我可以选中选择框来设置默认选项。 Is there a way I can set it programatically ? 有没有办法以编程方式设置它?

Thanks. 谢谢。

i don't know why it shows my app name 我不知道为什么它显示我的应用名称

Perhaps you have an activity with an <intent-filter> that claims to be a PDF viewer. 也许您有一个带有<intent-filter>的活动,该活动声称是PDF查看器。

Can I set a default option to acrobat and get rid of the options ? 我可以将默认选项设置为acrobat并摆脱这些选项吗?

The user may not have Acrobat. 用户可能没有Acrobat。 The user may not want Acrobat. 用户可能不需要Acrobat。 Please allow the user to choose which PDF viewer they want. 请允许用户选择他们想要的PDF查看器。

I can check the selection box to set a defalut option. 我可以选中选择框来设置默认选项。 Is there a way I can set it programatically ? 有没有办法以编程方式设置它?

No, you cannot. 你不能。 The user controls the user's device and the user's choice of PDF viewer, not you or any other app developer. 用户控制用户的设备和用户对PDF查看器选择,而不是您或任何其他应用程序开发人员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM