This pull request closes #62, #64 and indirectly starts #56.
This PR fixes the current behavior of listFiles and openDocumentFile API.
Now is possible to list contents of all subfolders of a granted Uri (Opened from openDocumentTree).
Now ACTION_VIEW intent builder through openDocumentFile API was fixed. So now it's possible to open any file of any kind in third party apps without needing specify the mime type.
Removed Android specific APIs:
DocumentFile.listFiles (Now it's only available globally).
buildDocumentUriUsingTree removed due high coupling with Android API (Android specific API that are not useful on any other platforms).
buildDocumentUri removed due high coupling with Android API (Android specific API that are not useful on any other platforms).
buildTreeDocumentUri removed due high coupling with Android API (Android specific API that are not useful on any other platforms).
getDocumentThumbnail now receives only the uri param instead of a rootUri and a documentId.
Huge thanks to @EternityForest who exposed a lot of relevant resources and contributed on #58 and #59.
This pull request closes #62, #64 and indirectly starts #56.
This PR fixes the current behavior of
listFiles
andopenDocumentFile
API.openDocumentTree
).ACTION_VIEW
intent builder throughopenDocumentFile
API was fixed. So now it's possible to open any file of any kind in third party apps without needing specify the mime type.DocumentFile.listFiles
(Now it's only available globally).buildDocumentUriUsingTree
removed due high coupling with Android API (Android specific API that are not useful on any other platforms).buildDocumentUri
removed due high coupling with Android API (Android specific API that are not useful on any other platforms).buildTreeDocumentUri
removed due high coupling with Android API (Android specific API that are not useful on any other platforms).getDocumentThumbnail
now receives only theuri
param instead of arootUri
and adocumentId
.Huge thanks to @EternityForest who exposed a lot of relevant resources and contributed on #58 and #59.