Questions tagged [document-provider]

1

votes
1

answer
30

Views

Is it possible for my own document provider to be offered only within my app?

This is a very short answer, which I couldn't find an answer to, not in in the docs and not anywhere over the Internet: On Android, apps can offer the user to choose files from them, to be chosen from other apps. For example, the Google Photos app allows to choose photos files from it. This is done...
1

votes
0

answer
25

Views

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 of time, and so by default was not saving it to the...
tfrysinger
1

votes
1

answer
345

Views

IOS Document Provider shows “Doesn't support the file type”

I am trying to implement an iOS Document Provider Extension, specifically in order to make it possible for web-pages to access files in my app 'Flyskyhy' directly. I've read through the normal documentation, and have used the standard way in XCode to add a DocumentProvider Extension target to the pr...
fishinear
1

votes
1

answer
21

Views

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: // Use the media type they selected intent.putExtra(Intent.EXT...
tfrysinger
1

votes
2

answer
1.5k

Views

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 firebase crash report. Please help me to figure out...
jazzbpn
0

votes
0

answer
3

Views

delete file from removable sd card using Storage Access FrameWork?

In my app i am getting files using content resolver and there i get paths like storage/BBF2-F/Music/Piano.mp3 now i want to use this path accessible to Document Provider class which can help in deleting it from removable storage card. or how can i convert uri from content resolver to document tree u...
A-J
7

votes
2

answer
147

Views

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 = Intent(Intent.ACTION_GET_CONTENT) intent.addCategory(Intent.CATEGORY_OPENABLE) intent.type = 'image/*' I can see Google Photos among...
natario
3

votes
1

answer
1.3k

Views

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 code: UIDocumentMenuViewController *menuVC = [[UIDocumentMenuViewController al...
Hossam Ghareeb
13

votes
1

answer
1.2k

Views

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, checking that they all form part of the same App Grou...
Danny Bravo
2

votes
0

answer
74

Views

Can we get to choose the application which can be used to edit a document in iOS 8?

I was going through Document Picker & Document Provider Extensions of iOS8 today. Document picker allows us to pick documents of the different apps where as the document provider helps us to work with third party storage. Right now I have one scenario that I am stuck with i.e, in my app I will have...
iamyogish
2

votes
1

answer
346

Views

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 function didPickDocumentAtURL was not called. There...
user3876330
2

votes
0

answer
144

Views

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 see my app’s name in the document picker and wh...
XiOS
7

votes
2

answer
3.9k

Views

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 provider extension', and to my surprise not found any relev...
LettersBa
4

votes
1

answer
1k

Views

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 inMode:UIDocumentPickerModeExportToService]; When I run this, I see iCloud, Google Drive and...
Stephen Darlington
2

votes
0

answer
114

Views

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 app. I have tried to get access for NSXPCConnection * _...
Aleks I
2

votes
0

answer
68

Views

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 it didn't seem to change anything: - (BOOL)shouldA...
Shaked Sayag
0

votes
1

answer
79

Views

DocumentProvider doesn't have permission to own ContentProvider

My Application Has 2 types of provider DocumentProvider ( DP )is exported='true' required by the specs ContentProvider (CP)is exported='false' required by the security Basic communication flow is 3rd Application asks DP for some info and DP ask CP for this info and return info to 3rd application. Le...
Vetalll