Comments (10)
不是的。子目录肯定也是支持的。
建议提供一下调用方式和文件列表,比较容易排查问题~
from androidfilepicker.
不是的。子目录肯定也是支持的。
建议提供一下调用方式和文件列表,比较容易排查问题〜
最后张图的音乐在子目录中,却扫描不到
from androidfilepicker.
@NiuXiaoGuang 调用方式有问题...你把文件夹过滤了呀...
正确的应该还要加上isDir
判断。然后也不需要加上isChecked()
,因为这个列表是最终的显示列表,还没有被选中的。
...
if (fileItemBean.isDir || fileItemBean.getFileType() instanceof AudioFileType){
fileItemBeans.add(fileItemBean)
}
from androidfilepicker.
@NiuXiaoGuang调用方式有问题......你把文件夹过滤了呀......
的正确应该还要加上
isDir
判断。然后也不需要加上isChecked()
,因为这个列表是最终的显示列表,还没有被选中的。...... 如果(fileItemBean 。 ISDIR || fileItemBean 。 getFileType()的instanceof AudioFileType){ fileItemBeans 。添加(fileItemBean) }
我按照你说的方式调用,但是结果还是不太理想,还是需要打开子文件夹才能找到,手机的文件夹太多了。能不能改进下,调用之后直接显示想要的指定文件类型而不包括文件夹,这样字比较直观一点
from androidfilepicker.
你想要的效果应该是直接扫描出所有指定类型的文件。这个功能现在还没有,后面会考虑加上~
from androidfilepicker.
你想要的效果应该是直接扫描出所有指定类型的文件。这个功能现在还没有,后面会考虑加上〜
拭目以待
from androidfilepicker.
@NiuXiaoGuang 您好,如果想直接选中特定类型的文件。
推荐可以使用系统的 SAF 进行访问。体验会更好。
from androidfilepicker.
0.6.0版本支持这个功能了吗
from androidfilepicker.
@wayuhan 还没有支持。可以看上一条评论。
因为如果这个库要做这件事情的话,会有点麻烦。所以我的推荐是建议使用系统的 SAF 进行访问。
from androidfilepicker.
from androidfilepicker.
Related Issues (20)
- please update to version 30 HOT 2
- All About Scope Storage. HOT 1
- 怎么少了最基本的Excel HOT 5
- How to show PDF files? HOT 9
- 是否可以考虑使用文件头来识别文件类型 HOT 2
- 可否考虑使用 SAF 方式来实现在 Android 11 及以上系统访问 Android/data 目录 HOT 3
- 文件返回错误 HOT 1
- java.lang.NullPointerException: dataList[position] must not be null HOT 1
- 请问为什么pdf txt等文件无法显示? HOT 2
- 没有适配Android11 HOT 1
- Android 11+授予MANAGE_EXTERNAL_STORAGE后依旧不可用 HOT 1
- 发布的版本打包kotlin插件版本号能否弄低一点? HOT 1
- 为什么没有FilePickerManager类 HOT 11
- 如何实现模糊搜索文件功能和跨文件夹多选功能 HOT 1
- 是否支持把根目录下所有指定格式文件检测出来呢? HOT 1
- NOT WORKING IN ANDROID 11 EVEN AFTER REQUESTING MANAGE_EXTERNAL_STORAGE HOT 1
- 无障碍TalkBack下无法选择文件或进入文件夹
- 获取文件不全(.txt) HOT 1
- 找不到文件 HOT 3
- android 13没有READ_EXTERNAL_STORAGE怎么办呢 HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidfilepicker.