Questions tagged [fileprovider]

74 questions
0
votes
2 answers

Android : About opening zip or rar files by other app

I implement this target by below code open file: /* 打开文件 * @param file */ public static void openFile(Activity context, File file) { Intent intent = new Intent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); …
besttimer
  • 1
  • 1
0
votes
1 answer

How to compare sourceItem.userInfo and domainUserInfo in FileProvider extension ActivationRule?

I'm creating a Rename-forbidden NSFileProviderUserInteractions rule. My goal: if sourceItem owner is not currently logged-in user, Rename should be forbidden. User-interaction rule in Info.plist file: ActivationRule
mixtly87
  • 1,675
  • 15
  • 32
0
votes
1 answer

Fixing Error EXC_RESOURCE RESOURCE_TYPE_MEMORY limit=200mb in File Provider Extension

In my File Provider Extension I have defined a custom action that displays a ViewController with a collectionView getting data from DiffableDataSource. Each cell is configured to adjust export settings for a PDF file. In the process of preparing the…
Nasser A
  • 1
  • 2
0
votes
1 answer

File Provider iOS Pagination

Really confused about how works the pagination of FileProvider, Im working with the parameter startingAtpage of the method: func enumerateItems(for observer: NSFileProviderEnumerationObserver, startingAt page: NSFileProviderPage) And creating a new…
0
votes
0 answers

Delete items using Apple's new api NSFileProviderReplicatedExtension

We are using Apple's new api NSFileProviderReplicatedExtension to implement a file provider extension. We can use this extension to synchronize files from a remote file server.When there are changes on the server,we can signal workingset to update…
feiniks
  • 28
  • 3
0
votes
1 answer

Unable to attach file to Email in Android 10

I am trying to attach pdf to Gmail using file provider. It is working on Android 6.0 but says 'Couldn't attach file' fun startFileShareIntent(filePath: String, context: Context?) { try { val file = File(filePath) val uri =…
0
votes
1 answer

How to retrieve the XPC service of a file provider extension on macOS?

I have extended my example project from my previous question with an attempt to establish an XPC connection. In a different project we have successfully implemented the file provider for iOS. The exposed service must be resolved by URLs it is…
0
votes
1 answer

Android 10 write file to public DCIM directory, NON DEPRECATED method

We have an Android app where field workers take photographs which are stored on their phone and also uploaded via a web api. If the uploads fail they do have retry mechanisms but sometimes they need to resort to pulling the images off their…
Tony
  • 33
  • 4
0
votes
1 answer

Why is my fileprovider location in the files app grey (inactive)

I have a working fileprovider extension but if I go to the photo album, for example, and share a photo and choose 'Save to Files' my files provider location appears in the list but is grey and inactive so it cannot be chosen. What do I need to do so…
B. Leslie
  • 165
  • 10
0
votes
1 answer

ContentProvider for files on removable micro-sd card for Android 11+

As FileProvider cannot serve from micro-sd card one has to make its own extending ContentProvider. So i did time ago. And was working fine for all Android versions below 11. It can serve files from the whole device including micro sd card. So also…
blackapps
  • 8,011
  • 2
  • 11
  • 25
0
votes
1 answer

Upgrade to .NET Core 3.1 - Can't instantiate singleton PhysicalFileProvider in services

I have a .NET Core solution containing an API project that was targeting .NET Core 2.1, and I upgraded it to .NET Core 3.1. I've realized that there is a number of breaking changes from doing that, which I have gone through and modified to be…
Andy
  • 616
  • 11
  • 32
0
votes
1 answer

Permission denied while sharing content uri from intent via fileprovider

I have downloaded data from download manager, taken its local uri and convered to content uri getting this content://com.myapp.name.provider/external_path/seedsheet-Jan-07-22-31_1610037996323.mp4 How ever when I try to open it via intent val intent…
0
votes
1 answer

Android content Uri cannot be played by other app

I used download manager to download a file to external storage. I set the destination to Download folder using request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, fileName) After success I retrieve the uri with val…
0
votes
0 answers

In Unity not able to open a pdf with File Provider in Android 10

I am using the below code for implementing the code with File Provider. In this, I have use the AndroidJavaClass and AndroidObjectClass to open a pdf. I have also set the file provider in my manifest but it's gives me error file provider not found.…
0
votes
0 answers

FileProvider not work in android 8.1 and higher

This is my code: if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.M) Uri uri = FileProvider.getUriForFile(context, "PacMe", pdfCreate); Intent intent = new Intent(); …