android - 意图选择文件 - 如何将类型设置为 .keystore?
问题描述
我正在尝试使用 Intent 选择文件.ACTION_GET_CONTENT
Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);
chooseFile.setType("*/*");
chooseFile = Intent.createChooser(chooseFile, "Select keystore");
startActivityForResult(chooseFile, 1001);
这将显示所有可供选择的文件。
有了这个答案:
intent.setType(type) 可能的意图类型是什么?
它显示了我可以为 Intent 设置的文件类型列表,但是我找不到仅选择.keystore
文件的选项(用于加密钱包)。
我将如何将该类型添加为意图?
解决方案
推荐阅读
- javascript - 删除部分网页 URL 或简单地重定向到 Tampermonkey 中更改的 URL 的方法?
- c++ - 变量在使用赋值语句赋值后恢复为先前的值
- reactjs - React Context 的范围是什么?
- android - 如何以编程方式更改 RecyclerView 的 fastScrollEnabled 属性?
- sql - Oracle 将多行转置为列,以便每个组的数据彼此相邻可见
- regex - Make regex quantifier length depend on previous capture group
- react-native - React Native 项目没有与 FlatList 正确分层
- javascript - 如何检查瓦片是否已经用 JavaScript 中的值填充?
- python - 在 Groupby 之后将两个数据框列除以订购时间
- terraform - 如何在 terraform 状态文件中填充新的输出变量?