From 81e4601ba2a8ef9cd6a5ddaf1f21691dd3dccd8f Mon Sep 17 00:00:00 2001 From: Hagen Brooks Date: Wed, 10 Nov 2021 07:43:41 +0200 Subject: [PATCH 1/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8701f35..214a2ee 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@

Demo screenshot:

-

Download the demo app here

+

Download the demo app here

@@ -48,7 +48,7 @@ Then, add the dependency, in your app level build.gradle: ```java dependencies { - implementation 'com.github.HBiSoft:PickiT:0.1.14' + implementation 'com.github.HBiSoft:PickiT:2.0.1' } ``` From a7e40dc91a417f82accbe7faf63ac35d1103427c Mon Sep 17 00:00:00 2001 From: Hagen Brooks Date: Thu, 2 Dec 2021 09:09:32 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 214a2ee..daf4d5e 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@

Demo screenshot:

-

Download the demo app here

+

Download the demo app here

@@ -48,7 +48,7 @@ Then, add the dependency, in your app level build.gradle: ```java dependencies { - implementation 'com.github.HBiSoft:PickiT:2.0.1' + implementation 'com.github.HBiSoft:PickiT:2.0.2' } ``` @@ -102,6 +102,21 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) { Dropbox, Google Drive, OneDrive and files from unknown file providers: --- + +You can check if the `Uri` is from Dropbox,Google Drive or OneDrive by calling: +```java +if (pickiT.isDriveFile(uri)){ + // Drive file selected +} +``` +You can check if the `Uri` is from an unknown provider by calling: +```java +if (pickiT.isUnknownProvider(uri, Build.VERSION.SDK_INT)){ + // Uri is from unknown provider +} +``` + +--- If the selected file was from Dropbox,Google Drive, OneDrive or an unknown file provider, it will then be copied/created in
`Internal Storage - Android - data - your.package.name - files - Temp` @@ -131,6 +146,7 @@ public void onDestroy() { 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. + Manifest --- If you are targeting SDK 29> add `android:requestLegacyExternalStorage="true"` in your manifest: From 890b99ce2970a51832bb294424c198b7d2757831 Mon Sep 17 00:00:00 2001 From: Hagen Brooks Date: Fri, 3 Dec 2021 14:53:17 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index daf4d5e..9bd42c0 100644 --- a/README.md +++ b/README.md @@ -105,8 +105,8 @@ Dropbox, Google Drive, OneDrive and files from unknown file providers: You can check if the `Uri` is from Dropbox,Google Drive or OneDrive by calling: ```java -if (pickiT.isDriveFile(uri)){ - // Drive file selected +if (!pickiT.wasLocalFileSelected(uri)){ + // Drive file was selected } ``` You can check if the `Uri` is from an unknown provider by calling: From dfbab5d6a458f881f42c10ce455b7b006a640b59 Mon Sep 17 00:00:00 2001 From: Hagen Brooks Date: Sat, 4 Dec 2021 08:55:22 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9bd42c0..e27cbb7 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,15 @@
-**

If you are using this library in one of your applications and would like to thank me:

** +--- + +**

I'VE SPENT A LOT OF TIME ON THIS PROJECT, IF YOU WANT TO THANK ME:

**

Buy Me A Coffee

+ +--- +

Demo screenshot:

Download the demo app here