android - 意图过滤器适用于奥利奥,但不适用于牛轧糖
问题描述
我有一个意图过滤器来处理 excel.xlsx 文件,它在 android 8 中运行良好,但是当我在 android 7 中尝试它时它不起作用我的意图过滤器是这样的:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="*"
android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
android:scheme="file" />
</intent-filter>
解决方案
推荐阅读
- python - 为什么 Python 会默默地转换为 0.0?
- mongodb - 在 CircleCI 作业中创建 Mongo 副本集
- python - python中的保持方法
- javascript - 尝试在单击触发渲染后使按钮保持突出显示
- angular - Angular Material mat-select:取消选择更改事件
- c# - 在 botframework v4 中使用 LUIS datetimeV2 实体
- data-binding - 如何使用 Svelte 中动态创建的选项绑定选择输入的值
- python - 命令行 python 和 jupyter notebooks 使用两个不同版本的 torch
- c# - 不支持网络浏览器
- flutter - 当我从 Flutter 应用程序使用 post 方法向 Web 服务请求时出现意外字符错误