Skip to content

Commit 6ba8e17

Browse files
committed
Merge remote-tracking branch 'origin/master' into master
2 parents 768fea1 + dfbab5d commit 6ba8e17

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@
88

99
</br>
1010

11-
**<p align="center">If you are using this library in one of your applications and would like to thank me:</p>**
11+
---
12+
13+
**<p align="center"><b>I'VE SPENT A LOT OF TIME ON THIS PROJECT, IF YOU WANT TO THANK ME:</b></p>**
1214

1315
<p align="center"><a href="https://www.buymeacoffee.com/HBiSoft" target="_blank" ><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 164px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a></p>
1416

17+
18+
---
19+
1520
<h2 align="center"><b>Demo screenshot:</b></h2>
1621

17-
<p align="center">Download the demo app <a href="https://github.com/HBiSoft/PickiT/releases/download/0.1.14/PickiTDemo.apk"><nobr>here</nobr></a></p>
22+
<p align="center">Download the demo app <a href="https://github.com/HBiSoft/PickiT/releases/download/2.0.2/PickiTDemo.apk"><nobr>here</nobr></a></p>
1823

1924
<p align="center"><img src="https://user-images.githubusercontent.com/35602540/63206870-1c708980-c0bd-11e9-96dc-374a8a434c0e.png"</p>
2025

@@ -48,7 +53,7 @@ Then, add the dependency, in your app level build.gradle:
4853

4954
```java
5055
dependencies {
51-
implementation 'com.github.HBiSoft:PickiT:0.1.14'
56+
implementation 'com.github.HBiSoft:PickiT:2.0.2'
5257
}
5358
```
5459

@@ -102,6 +107,21 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
102107

103108
Dropbox, Google Drive, OneDrive and files from unknown file providers:
104109
---
110+
111+
You can check if the `Uri` is from Dropbox,Google Drive or OneDrive by calling:
112+
```java
113+
if (!pickiT.wasLocalFileSelected(uri)){
114+
// Drive file was selected
115+
}
116+
```
117+
You can check if the `Uri` is from an unknown provider by calling:
118+
```java
119+
if (pickiT.isUnknownProvider(uri, Build.VERSION.SDK_INT)){
120+
// Uri is from unknown provider
121+
}
122+
```
123+
124+
---
105125

106126
If the selected file was from Dropbox,Google Drive, OneDrive or an unknown file provider, it will then be copied/created in</br>
107127
`Internal Storage - Android - data - your.package.name - files - Temp`
@@ -131,6 +151,7 @@ public void onDestroy() {
131151

132152
If you do not call `pickiT.deleteTemporaryFile(Context);`, the file will remain in the above mentioned folder and will be overwritten each time you select a new file from Dropbox,Google Drive, OneDrive or an unknown file provider.
133153

154+
134155
Manifest
135156
---
136157
If you are targeting SDK 29> add `android:requestLegacyExternalStorage="true"` in your manifest:

0 commit comments

Comments
 (0)