|
8 | 8 |
|
9 | 9 | </br>
|
10 | 10 |
|
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>** |
12 | 14 |
|
13 | 15 | <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>
|
14 | 16 |
|
| 17 | + |
| 18 | +--- |
| 19 | + |
15 | 20 | <h2 align="center"><b>Demo screenshot:</b></h2>
|
16 | 21 |
|
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> |
18 | 23 |
|
19 | 24 | <p align="center"><img src="https://user-images.githubusercontent.com/35602540/63206870-1c708980-c0bd-11e9-96dc-374a8a434c0e.png"</p>
|
20 | 25 |
|
@@ -48,7 +53,7 @@ Then, add the dependency, in your app level build.gradle:
|
48 | 53 |
|
49 | 54 | ```java
|
50 | 55 | dependencies {
|
51 |
| - implementation 'com.github.HBiSoft:PickiT:0.1.14' |
| 56 | + implementation 'com.github.HBiSoft:PickiT:2.0.2' |
52 | 57 | }
|
53 | 58 | ```
|
54 | 59 |
|
@@ -102,6 +107,21 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
102 | 107 |
|
103 | 108 | Dropbox, Google Drive, OneDrive and files from unknown file providers:
|
104 | 109 | ---
|
| 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 | +--- |
105 | 125 |
|
106 | 126 | If the selected file was from Dropbox,Google Drive, OneDrive or an unknown file provider, it will then be copied/created in</br>
|
107 | 127 | `Internal Storage - Android - data - your.package.name - files - Temp`
|
@@ -131,6 +151,7 @@ public void onDestroy() {
|
131 | 151 |
|
132 | 152 | 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.
|
133 | 153 |
|
| 154 | + |
134 | 155 | Manifest
|
135 | 156 | ---
|
136 | 157 | If you are targeting SDK 29> add `android:requestLegacyExternalStorage="true"` in your manifest:
|
|
0 commit comments