Questions tagged [fileprovider]
74 questions
0
votes
0 answers
How to share video file from my internal Download folder to whatsapp
As the title already conveyed what I want to achieve, here is what I'm using:
public void shareVideoWhatsApp() {
final Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("*/*");
Uri videoUri =…

The Curiosity
- 1
- 3
0
votes
1 answer
How to create content provider for sharing PDF file through implicit intent to another app?
I am making project for my school. In this app, I am downloading pdf files from Firebase and storing it on app's external dir. After downloading, I want to through implicit intent to other pdf reader app to display downloaded pdf. I searched web for…

coditive
- 1
- 3
0
votes
1 answer
Open APK file from application on API 24 and above
I need to open intent with apk file that is downloaded from remote host. On API below 24 everything worked fine and still seems to be ok. Right now I have to target API 29 which is causing me some problems.
When I am trying to open apk file on…

bialy
- 193
- 2
- 14
0
votes
1 answer
Work with encrypted file and provide them with FileProvider
In my Android app, I need to expose some file from a FileProvider. Without encryption, it's quite easy: I simply add the FileProvider to manifest.xml.

xcesco
- 4,690
- 4
- 34
- 65
0
votes
1 answer
Any FileProvider in ASP.NET Core to provide versioned files by folder instead of parameter?
I need to version my Javacript files (for clearing cache purpose) but cannot use asp-append-version because the script files are used from Javascript import:
import * as Foo from './foo.js'
Therefore, I plan to have a FileProvider that can serve a…

Luke Vo
- 17,859
- 21
- 105
- 181
0
votes
1 answer
Injecting a service into a FileProvider
I'm building a custom file provider that implements IFileProvider in AspNetCore 2. The file provider will reach out to a webservice( consumerBrandingRepository ) to get the views. The webservice is configured in Startup and will cache data( via…

Darthg8r
- 12,377
- 15
- 63
- 100
0
votes
1 answer
Swift macOS How to Implement FTP Support
I need to upload a file to an FTP server, check if a folder exists and, if not, create it. I found FileProvider by Amir Abbas Mousavian. I got everything installed and have implemented the following code:
let credential = URLCredential(user:…

Floyd Resler
- 1,786
- 3
- 22
- 41
0
votes
1 answer
FileOutputStream doesn't save image to external storage
I am trying to save an Imgefile from a picture taken from the camera with high resolution. Unfortunatly no file is beeing created.
I don't know where the error lies.
public void saveImage(Bitmap imageFile) {
String timeStamp = new…

Malik
- 1
- 2
0
votes
0 answers
Email getting stuck in Outbox after attaching file using FileProvider
I'm trying to send an email with an attached file in an android app. The email appears to get sent but never shows up. It is stuck in the Outbox of Gmail with the message "Sending...." It does not get sent. I suspect that the FileProvider code is…

Michael Bietsch
- 39
- 5
0
votes
1 answer
FileProvider: "CopyItem()" is called twice -> error (FTP download)
The first view of my app (Swift 5, Xcode 10, iOS 12) has a "username" TextField and a "login" Button. Clicking on the button checks if there's a file for the entered username on my FTP server and downloads it to the Documents folder on the device.…

Neph
- 1,823
- 2
- 31
- 69
0
votes
1 answer
Is it safe to share the entire path with a FileProvider?
I'm working on a library where I implement a FileProvider from Android Support and want to make it easy to allow the developer to share files from any of the external-path, external-cache-path, cache-path. If I provide the paths myself, the…

Redth
- 5,464
- 6
- 34
- 54
0
votes
0 answers
Unable to read file using FileProvider
I have multiple apps that take photos and store them on external storage.
I want to upload the photos along with some metadata to a web application running on my companies server.
I am able to write data and file URI to a database using a…

Erik Johansson
- 21
- 2
-1
votes
1 answer
Why is fetchContents(...) called when opening an already materialized file?
I am implementing a file provider based on NSFileProviderReplicatedExtension on macOS. Currently I am working on the download of remote dataless files which works fine so far. It is materialized and available locally and the related…

p13n
- 859
- 8
- 31
-3
votes
1 answer
how to solve this problem android error ?? (java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser)
when I perform my app, The following error occurs in android studio LOGCAT.
How to solve this problem?
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.XmlResourceParser…

kmh
- 1
- 1