Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
iptrz6
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
iptrz6
2y ago
That's exactly what OPEN_DOCUMENT_TREE does. The typical workflow involves presenting a directory picker activity to the user and asking them to pick a dir (the app can then retroactively ask the OS to persist these permissions across
2.
▲
by
iptrz6
2y ago
> No it doesn't, `ACTION_OPEN_DOCUMENT_TREE` provides you with a `DocumentFile`, which isn't a `java.io.File`. You can call `contentResolver.openFileDescriptor` on a a `content://` Uri from SAF, and get a `ParcelFileD