Questions tagged [fileprovider]
74 questions
1
vote
0 answers
problem with take photo from camera by FileProvider
I am trying to make a program that takes pictures with High quality from camera and it is displayed in imageview / So if I'm try run the code on Android 9 and android 7 its work fine/but whene I'm try it into android 4.1.1 API 16 its not working…
user12739117
1
vote
1 answer
Android - I can't open a file from an attempt but from the file explorer
Good day,
I am making an app in which I have to load from the database some cardview with data and image or document, when pressing on this element to obtain the option to download the file and when finished downloading it, offer the possibility of…

Kevin Garcia
- 11
- 1
1
vote
1 answer
Xamarin Android FileProvider Java.Lang.IllegalArgumentException: Failed to find configured root that contains
I use Xamarin to create Android Apps. I want to open my app's file in other app (let say .docx file in microsoft word app, and etc).
I use FileProvider, but always get this error:
Exception:Java.Lang.IllegalArgumentException: Failed to find…

mas_bejo
- 597
- 2
- 6
- 22
1
vote
0 answers
How to serve pages using fileprovider from controller?
I have a Asp Net Core and while i have some controllers that represent simple API calls i also want to use FileProvider's for serving pages.
How can i redirect a request for a page to a controller (check credentials) , and serve it ? I must also…

Bercovici Adrian
- 8,794
- 17
- 73
- 152
1
vote
0 answers
FileProvider WebDav HTTP load failed
I am using https://github.com/amosavian/FileProvider to access my WebDav server, do load some logs onto it.
It was working great for some time, but now every time I use copyItem I get a HTTP load failed.
This is the relevant code:
let server: URL =…

Manuel
- 613
- 1
- 6
- 20
1
vote
1 answer
Treat data of a XML file using FileProvider
I want to read an XML file stored in downloads using the Android app I am developing.
I want to use File Provider to search for it but once I find it, I want to know the real path of that XML file in order to parse it and treat it.
How can I make…

Ferrioni
- 13
- 6
1
vote
1 answer
Manifest with fileprovider compatible with old Android version
To maintain compatibility with Android 8 for my app I had to add the "provider" tag in the manifest. This is the tag:

Bronz
- 217
- 3
- 7
1
vote
1 answer
App suddenly crashes after taking a picture, rotate the screen and return to the activity
App suddenly crashes after taking a picture, rotate the screen and return to the activity.
I’m making an Android app that need take a picture and store their route into a DB as String, I followed the official google tutorial…

Eduardo Corona
- 1,262
- 4
- 20
- 31
0
votes
0 answers
Unable to return a file using FileProvider in Xamarin.Forms Android
I have two Xamarin Forms Android apps. App1 creates an activity in App2, that creates files that should be returned to App1.
Previously I was using the same sharedUserId in AndroidManifest.xml of both apps so it was simply needed to return the file…

Jones Abramoff
- 1
- 1
0
votes
0 answers
How to programmatically delete a photo from a DCIM subfolder on Android 13?
I am using fileprovider to save a photo to my device on Android 13 with the camera intent. This only seems to work when the folder or file being saved to doesnt exist.
Bear in mind the device does not have external card slot, its all internal…

rafhelp
- 13
- 4
0
votes
0 answers
Permission to the camera breaks access to the gallery [Flutter] [flutter_inappwebview]
I have a strange problem and I can't figure out what's causing it. My application has a screen with a webview using the flutter_inappwebview package. In the future, I will need access to the camera and gallery to select photos.
For the camera, I…
0
votes
0 answers
Duplicate items being created during reimport in NSFileProviderEnumerator
I am working on an NSFileProviderEnumerator in my iOS application to enumerate the contents of a directory. However, I'm experiencing an issue where duplicate items are being created during the reimport process.
Here is my enumeration code…

Sri
- 63
- 2
- 10
0
votes
0 answers
Android FileProvider: Can I view/share file from Downloads /Documents /DCIM Folders?
I have pdf files in Downloads Folder: Environment.DIRECTORY_DOWNLOADS+File.separator+"MyFolder". Listed the files I need in a Recyclerview. I need to view any selected file in any pdfviewer, using intent.
Created a FileProvider with this xml
…

Bonifes Maina
- 33
- 1
- 6
0
votes
1 answer
Why does every xamarin.forms application have a FileProvider added to the android app?
Not sure if people notice, but if you create a Xamarin.Forms project, just the simple helloworld created by VisualStudio. It will have a fileprovider added to it when you build. You'll have to go look in the compiled manifest to see it, but it's…

Colin
- 13
- 4
0
votes
0 answers
Stream file from my cloud app to 3rd party app (handle read/write byte[] requests) in Android
I want to stream my files directly from my cloud app to 3rd party apps, without downloading the file in advance on non-rooted device.
For example: When I create an Intent to open an audio file from my Cloud app with any 3rd party audio player, the…

Peter Baev
- 41
- 4