B4A Library [class] FileProvider - share files - Erel    
Aug 16, 2021   
(48 reactions)   
tags: B4A Class FileProvider, share email file, share, File provider, email, WP SHAREEdit: FileProvider is included as an internal library now.
After investigating several issues with the current FileProvider code that you can find in the forum, I decided to make some improvements... with other applications. You need to use FileProvider.
The FileProvider class should work on all Android versions (4+).
Instructions:
1. Add a reference to FileProvider library.
2. Add to...
link: Example in first post was updated. It is based on B4XPages and uses the library instead of the module.
Old example is attached....
B4A Code Snippet VideoRecordApp with FileProvider - Erel    
Jan 7, 2020   
(11 reactions)-libraries.59340/#post-635852
Based on FileProvider example and class: Sharing files from your app with File Provider
video.Initialize("video") 'video is a process global VideoRecordApp variable.
Dim folder As String = Starter.Provider.SharedFolder
Dim FileName As String = "1.mp4"
video.Record3(folder, FileName, -1, Starter.Provider.GetFileUri(FileName))
Wait For... As Intent
in.Initialize(in.ACTION_VIEW, "")
Starter.Provider.SetFileUriAsIntentData...
B4A Question How to get FileProvider working without entire RuntimePermission lib or entire com.android.support:support-v4 ? - JohnC    
Jan 4, 2023 my app to require permission to the user's storage/files, so I am using FileProvider.
The FileProvider class uses the function "GetSafeDirDefaultExternal" to get a directory...
link: Ah, gotcha.
OK, switched over all references to just your lib and it's working great!
Thanks a...
link: .content.FileProvider")
fp.InitializeStatic("b4a.tinyfileprovider.igolub.B4AFileProvider...
link: .FileProvider")
fp.InitializeStatic("b4a.tinyfileprovider.igolub.B4AFileProvider...
B4A Question FileProvider is forcing recipient apps to become default apps - JackKirk    
Feb 17, 2021I am on Android 5.0
I launch the stock standard FileProvider example from https://www.b4x.com... the FileProvider example again and then tap
This time I do not get the "Open with" pop up menu...
link:
Just for kicks, try changing the targetSdk to "21" and see if that changes anything:
Tri...
link: Just dug up an Android 7.0 phone and ran the original example (without my added line as per post #14...
link:
The manifest in use is the one that was in the example:
Just for kicks, try changing the targetSdk...
B4A Question FileProvider and Opening PDF Application List - tsteward    
May 7, 2019My App downloads a PDF then using FileProvider it uses share to open the PDF. But the list...="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider...
link: the FileProvider library
5. Added this to the Process_Globals - Private Provider As FileProvider
6. Initialized...
link: .
you already have the file; just copy it to your fileprovider like member almora did
(from wherever...
link: Sorry I don't remember, it was a previous project. The answer must be above though.
Good luck...
Wish Remove Log from FileProvider.b4xlib - Sandman    
Aug 29, 2024   
(1 reaction)In FileProvider.b4xlib (internal lib), there is this line:
Log($"Using FileProvider? ${UseFileProvider}"$)
It would be nice to have it removed in the standard library....
link: , I imagine it will contain the latest version of FileProvider.
(I also tried searching the forum for...
link: The log was removed at some point (unfortunately the version remained 1.00). It is possible that you have an old copy of that library...
B4A Class [Class] Send E-Mail with FileproviderURI - Deleted member 103    
Feb 3, 2022   
(6 reactions)Deleted...
B4A Question What needs to be adjusted in the FileProvider manifest? - Sandman    
Mar 25, 2024 the FileProvider snippet.
But looking at the manifest from FileProvider, I cannot for the life of me see what....b4x.com/android/forum/threads/class-fileprovider-share-files.97865/...
link:
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$...
Wish Remove FileProvider log message - Sandman    
Mar 24, 2024   
(2 reactions)Remove log message from FileProvider:
Log($"Using FileProvider? ${UseFileProvider}"$)...
B4A Question ActivitySetResult + FileProvider + Bitmap = Failure - drgottjr    
Feb 19, 2023 the exchange and the exception thrown are attached.
It only occurs when using FileProvider, which... FileProvider in combination with ActivitySetResult fails with the same error (as shown in...
link: saw that years ago; not what i'm doing. thanks anyway. the simple examples demonstrate clearly...
link: /threads/sharing-files-from-your-app-with-file-provider.70458/#content...
link: the image from the receivers's file provider using the URI, it fails....
Page: 1  
2  
3  
4  
5  
6