【发布时间】:2021-07-17 16:02:50
【问题描述】:
我正在开发一个可以查看或编辑 pdf 文件的 Android 应用程序。
我的应用程序显示在“使用...打开文件”屏幕中。 here is the screenshot
但是当我从 google 文件文件管理器应用程序中单击一个 pdf 文件时,它显示“打开方式”屏幕并且我的应用程序不存在。 here is the screenshot
这是我在 manifest.xml 中的意图过滤器:
<intent-filter android:label="View or edit your pdf files">
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT"/>
<data android:scheme="content" />
<data android:mimeType="application/pdf" />
</intent-filter>
如何使我的应用在“打开方式”屏幕中可见,例如第二个屏幕截图中的 Drive Pdf Viewer 和 WPS Office?
【问题讨论】:
标签: android android-intent intentfilter