tag:github.com,2008:https://github.com/HBiSoft/PickiT/releasesRelease notes from PickiT2022-04-28T14:53:12Ztag:github.com,2008:Repository/202703102/2.0.52022-04-28T14:53:45ZFix issue #48<p>Seems like this happens when selecting a file with an unusual, but valid extension, like <code>.JPG</code> instead of <code>.jpg</code> or <code>.jpeg</code>.<br>
This is fixed by first checking if the file exists after it has been returned from Utils, if it's available it gets returned otherwise it will be copied to the temp folder.</p>HBiSofttag:github.com,2008:Repository/202703102/2.0.42022-04-28T13:45:22ZUpdate demo application<p>Changed the demo application to have the option to select an image or a video.</p>HBiSofttag:github.com,2008:Repository/202703102/2.0.32022-02-09T13:10:41ZFix issue #44/#45<p>Fix issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1059963321" data-permission-text="Title is private" data-url="https://github.com/HBiSoft/PickiT/issues/44" data-hovercard-type="issue" data-hovercard-url="/HBiSoft/PickiT/issues/44/hovercard" href="https://github.com/HBiSoft/PickiT/issues/44">#44</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1101309306" data-permission-text="Title is private" data-url="https://github.com/HBiSoft/PickiT/issues/45" data-hovercard-type="issue" data-hovercard-url="/HBiSoft/PickiT/issues/45/hovercard" href="https://github.com/HBiSoft/PickiT/issues/45">#45</a>.<br>
You can now check if the file was selected from an unknown provider.</p>HBiSofttag:github.com,2008:Repository/202703102/2.0.22021-12-02T07:09:22ZImplement #44<p>You can now check if the <code>Uri</code> is from an unknown provider, like <code>File Explorer</code> using <code>isUnknownProvider(uri, APILevel);</code></p>HBiSofttag:github.com,2008:Repository/202703102/2.0.12021-11-10T05:42:56ZFix issue #41<p>This release mainly fixes issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1037641811" data-permission-text="Title is private" data-url="https://github.com/HBiSoft/PickiT/issues/41" data-hovercard-type="issue" data-hovercard-url="/HBiSoft/PickiT/issues/41/hovercard" href="https://github.com/HBiSoft/PickiT/issues/41">#41</a>, but also cleaned up the project and also updated the dependencies.</p>
<p>When selecting a file inside a sub-directory in the <code>Downloads</code> directory, the <code>Uri</code> on some devices return a content <code>Uri</code> using an <code>msf:</code> provider. In this case, it's not possible to "convert" the <code>Uri</code> to a file path. The library uses <code>/proc/</code> in this case. You can use the <code>proc</code> path returned as you would with a file path.</p>
<p>I've also added the option to disable <code>/proc/</code> if it's not working for some reason.</p>
<p>You can now also select multiple files.</p>HBiSofttag:github.com,2008:Repository/202703102/0.1.142020-07-31T08:38:28ZTwo improvements<p>Fixing issue when selecting a file from "Recent" or "Download" on Android 11.<br>
Added context when deleting temp folder <code>pickiT.deleteTemporaryFile(this);</code></p>
<p>Also, updated API's to the latest.</p>HBiSofttag:github.com,2008:Repository/202703102/0.1.132020-07-16T16:50:42ZAdd support for Dropbox's integrated file picker<p>Thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/1nicolas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/1nicolas">@1nicolas</a> - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="657687426" data-permission-text="Title is private" data-url="https://github.com/HBiSoft/PickiT/issues/22" data-hovercard-type="pull_request" data-hovercard-url="/HBiSoft/PickiT/pull/22/hovercard" href="https://github.com/HBiSoft/PickiT/pull/22">#22</a></p>HBiSofttag:github.com,2008:Repository/202703102/0.1.122020-07-02T13:17:20ZSD Card path on different devices<p>Some devices didn't allow us to use the UID to access files for example /storage/6555-4521/video.mp4 - It will now first check if your device can access the file, if not it will attempt to get the "name" of your SD Card and return a path like this instead /storage/sdcard1/video.mp4</p>HBiSofttag:github.com,2008:Repository/202703102/0.1.112020-04-27T06:51:27ZAdded PickiTonUriReturned() callback<p>IMPORTANT:<br>
When selecting a file from Google Drive, for example, the Uri will be returned in onActivityResult before the file is even available. We first have to wait for Google Drive to download the file before we try and use it. That is why PickiTonUriReturned() callback was added. Applications like Dropbox display a ProgressBar (indicating the progress) for us(inside the picker), but there are many applications like Google Drive and OneDrive which will return the Uri before it is even usable. Unfortunately, there is no way of knowing the progress of the file being downloaded - Thus we can only let the user know (inside PickiTonUriReturned) that we are waiting for the file to be downloaded (This can actually take very long depending on the file size).</p>
<p>You can test this, go to:<br>
Google Drive - App Info - Storage - Clear data<br>
Then open your app (or the demo app) and select a file from Google Drive.</p>HBiSofttag:github.com,2008:Repository/202703102/0.1.102020-02-24T06:05:18ZFix issue #14<p>The issue was that the file size was rounded to <code>0</code>, causing the crash.</p>HBiSoft