document-provider

Pick from Google Photos provider with ACTION_GET_CONTENT or OPEN_DOCUMENT

跟風遠走 提交于 2020-11-29 04:21:55
问题 I have no clue at why this happens, but I am not able to pick images from the Google Photos provider. Testing on API 27. With ACTION_GET_CONTENT If I use: val intent = Intent(Intent.ACTION_GET_CONTENT) intent.addCategory(Intent.CATEGORY_OPENABLE) intent.type = "image/*" I can see Google Photos among the provider I can browse to some picture and select it Then I am directed back to the providers list (not to my app), as if the provider had crashed in a try-catch When I open the Photos provider

Why Photos app is NOT showing in the Document Provider extensions on the device?

这一生的挚爱 提交于 2019-12-22 10:26:35
问题 I'm working in app to pick photo, I have used UIDocumentMenuViewController to display list of extensions for document provider. This list shows Dropbox, iCloud, GoogleDrive but not the native Photos app, why? Sample of my code: UIDocumentMenuViewController *menuVC = [[UIDocumentMenuViewController alloc] initWithDocumentTypes:@[@"public.image"] inMode:UIDocumentPickerModeImport]; 回答1: I'm not sure if there is another way natively to do this, but I came up with a solution to add a custom option

Issues traversing through directory hierarchy with Android Storage Access Framework / DocumentProvider using MTP

核能气质少年 提交于 2019-12-20 04:54:09
问题 UPDATE: My initial question may be misleading so I want to rephrase it: I want to traverse through the hierarchy tree from an MTP connected device through Android's Storage Access Framework. I can't seem to achieve this because I get a SecurityException stating that a subnode is not a descendant of its parent node. Is there a way to workaround this issue? Or is this a known issue? Thanks. I'm writing an Android application that attempts to traverse and access documents through the hierarchy

Exception java.lang.SecurityException: reading ..MediaDocumentsProvider … requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()

微笑、不失礼 提交于 2019-12-18 16:52:53
问题 I found this issue only in some devices when trying to pick the picture for the profile image. While checking in the emulator these issue are not seen but on live version of the app this issues are facing by this users. Screenshot captured from the firebase crash report. Please help me to figure out the issue. AndroidMenifest.xml ... <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses

How to use Document Provider Extension?

十年热恋 提交于 2019-12-09 11:03:38
问题 I was learning a little more about ios extensions, such as: Today Extension Photo editing Extension Action Extension Custom keyboard Extension In all of them I did not have difficulties in learning, but recently I try to learn the "document provider extension", and to my surprise not found any relevant tutorial on the Internet talking about how to use it (step by step as the others). The only alternative I found was use the documentation, and I learned that he can access shared documents from

Why Photos app is NOT showing in the Document Provider extensions on the device?

两盒软妹~` 提交于 2019-12-05 21:27:59
I'm working in app to pick photo, I have used UIDocumentMenuViewController to display list of extensions for document provider. This list shows Dropbox, iCloud, GoogleDrive but not the native Photos app, why? Sample of my code: UIDocumentMenuViewController *menuVC = [[UIDocumentMenuViewController alloc] initWithDocumentTypes:@[@"public.image"] inMode:UIDocumentPickerModeImport]; I'm not sure if there is another way natively to do this, but I came up with a solution to add a custom option with handler. I added "Photos" option and in the handler I use UIImagePickerViewController :

How to use Document Provider Extension?

二次信任 提交于 2019-12-03 13:18:04
I was learning a little more about ios extensions, such as: Today Extension Photo editing Extension Action Extension Custom keyboard Extension In all of them I did not have difficulties in learning, but recently I try to learn the "document provider extension", and to my surprise not found any relevant tutorial on the Internet talking about how to use it (step by step as the others). The only alternative I found was use the documentation, and I learned that he can access shared documents from other applications, and you can also share your own existing documents within your app. The only

Issues traversing through directory hierarchy with Android Storage Access Framework / DocumentProvider using MTP

流过昼夜 提交于 2019-12-02 05:29:54
UPDATE: My initial question may be misleading so I want to rephrase it: I want to traverse through the hierarchy tree from an MTP connected device through Android's Storage Access Framework. I can't seem to achieve this because I get a SecurityException stating that a subnode is not a descendant of its parent node. Is there a way to workaround this issue? Or is this a known issue? Thanks. I'm writing an Android application that attempts to traverse and access documents through the hierarchy tree using Android's Storage Access Framework (SAF) via the MtpDocumentsProvider . I am more or less