Releases: HBiSoft/PickiT
Fixed and changed a few things
- All content providers should now work with this release.
- Copied files now have the same name as the original file, if available (instead of tempFile). If the file name can not be retrieved using ContentResolver, the last index of the uri will be used. This should not affect the file in any way.
- The file extension of Google Drive, Dropbox and OneDrive files will now be included in the file name (if it is available - https://stackoverflow.com/a/53132045/5550161).
Fix 2 issue
wasLocalFileSelected
Added option to check if the selected file was selected from Dropbox, Google Drive or Dropbox.
Improvements to unknown file providers
Some file providers(applications) will return null when trying to read the data column (for example EZ File Explorer). With this release, I check if the data column returns null. If it does, a copy for the file is created in the temporary folder, same as when you select a file from Google Drive.
Fix issue #1
Added checks to ensure the file size / cursor doesn't return 0 / null.
Important changes
This release has 3 main changes:
- If the file was selected from an unknown provider, it will now also be copied to the temp folder. This is to avoid the
Unknown Uri
issue. It is the only reliable way of doing it. - I added checks for the file extension. I have added comments in the library if you want to read more about this.
- There was an issue when selecting a file from a sub-directory inside the downloads directory, this will now be fixed.
Added wasSuccessful boolean to onCompleteListner
The PickiTonCompleteListener
now has two more parameters. A boolean
to check if PickiT was successful and a String
to return the reason why it was not successful.
Revert back to old Download Provided implementation
In the original gist I posted, I was recommended to change the implementation of the Downloads provider. After more testing, I've found that this causes issues. I reverted back with the original implementation that has proven to work.
Minor improvements
Code cleanup and renaming of some classes
An Android library that returns real paths from Uri's
First release