Questions tagged [document-provider]
29 questions
14
votes
1 answer
Cannot test Document Provider Extension
I'm am trying to implement a Document provider extension for my app in order to allow imports / exports / moves of files between apps.
I've created my main app and added both the document provider and the file provider extensions to the project,…

Danny Bravo
- 4,534
- 1
- 25
- 43
11
votes
4 answers
Pick from Google Photos provider with ACTION_GET_CONTENT or OPEN_DOCUMENT
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 =…

natario
- 24,954
- 17
- 88
- 158
10
votes
3 answers
Issues traversing through directory hierarchy with Android Storage Access Framework / DocumentProvider using MTP
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…

spring.ace
- 141
- 1
- 9
8
votes
2 answers
Exception java.lang.SecurityException: reading ..MediaDocumentsProvider ... requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()
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…

jazzbpn
- 6,441
- 16
- 63
- 99
7
votes
2 answers
How to use Document Provider Extension?
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…

LettersBa
- 747
- 1
- 8
- 27
4
votes
1 answer
Document provider inconsistency
I am using the new document provider functionality to try to export files to third party cloud services:
UIDocumentMenuViewController* activity = [[UIDocumentMenuViewController alloc] initWithURL:writer.file
…

Stephen Darlington
- 51,577
- 12
- 107
- 152
3
votes
1 answer
Why Photos app is NOT showing in the Document Provider extensions on the device?
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…

Hossam Ghareeb
- 7,063
- 3
- 53
- 64
2
votes
0 answers
Using cache in ExoPlayer for persisting streamed video
UPDATE:
I found this post, which details exactly the same problem I am seeing. It turns out that the fact I am using a Pipe approach in my DocumentsProvider to stream content from DropBox means that ExoPlayer doesn't know the size of the file ahead…

tfrysinger
- 1,306
- 11
- 26
2
votes
1 answer
How can my DocumentsProvider access the intent data used to launch the File Picker
I am implementing a custom DocumentsProvider. When accessing the file picker using standard Android protocol, the application can provide multiple mime types they are interested in, then request the file picker doing something like this:
//…

tfrysinger
- 1,306
- 11
- 26
2
votes
1 answer
Xamarin iOS: Why required to call StartAccessingSecurityScopedResource and release it in the DocPicker Sample
I am using Document Picker in Xamarin iOS. In the sample of the DocPicker, they called something like StartAccessingSecurityScopedResource with comment on top.
// IMPORTANT! You must lock the security scope before you can
// access this…

LittleFunny
- 8,155
- 15
- 87
- 198
2
votes
0 answers
Disable rotation in Document Provider iOS app extension
I am making an app extension and would like the orientation to be portrait only. Can I prevent rotation of the app I'm extending to landscape, once my app extension has been loaded?
I tried adding these methods in my extension's UIViewController but…

Shaked Sayag
- 5,712
- 2
- 31
- 38
2
votes
0 answers
IOS Document Provider Extension: Identify host application
I am working on an application that has a secure container for files. From the security needs we have to prohibit document extension for host applications that are in a black list. Are there any opportunities to identify bundle/name of the host…

Aleks I
- 33
- 4
2
votes
0 answers
Move mode in document picker extension
I am trying to create a file with Word mobile app and save it in my application, for which i have implemented document picker extension for my application with ‘move’ mode enabled. So when i create a file with Word app and try to save it, i could…

XiOS
- 1,665
- 2
- 18
- 22
2
votes
0 answers
How to apply custom theme on android document provider?
I am opening builtin image provider in android and its opening correctly.
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
// Filter to only show results that can be "opened", such as a
// file (as opposed to a list of contacts or…

Azim Ansari
- 1,378
- 11
- 20
2
votes
1 answer
Document Provider's dismissGrantingAccessToURL does not work in iOS 8.3
I build my app with Document Picker Extension & Document Porvider Extension and they worked well before iOS8.3.
With iOS 8.3, nothing happened if I called dismissGrantingAccessToURL. View controller of Picker did not dismiss and Host app's delegate…

user3876330
- 83
- 6