FileProvider Android: Sharing Audio Files

  Рет қаралды 3,241

AndroidTutorials

AndroidTutorials

5 жыл бұрын

This tutorial will show you how to share data audio files with other apps that are capable of receiving it. We will be using FileProvider, and will be sharing mp3 audio files.
We will look into certain sections such as manifest, xml paths, and code to implement FileProvider.
Github: github.com/Kiarasht/Android-T...
Documentations:
developer.android.com/trainin...
developer.android.com/referen...

Пікірлер: 11
@samuelwittlinger7790
@samuelwittlinger7790 4 жыл бұрын
Thank you so much I have not been able to find a working solution for sharing from resource files until now, you are a real life saver!
@amm9653
@amm9653 3 жыл бұрын
does this work with android 10 and 11, cause I've implemented some very similar functionality to what you have in the video but in android 10 and 11 I get this error "java.lang.SecurityException: Permission Denial" whenever I try to trigger the share intent, but with API < 29 it works normally
@0u55ama
@0u55ama 2 жыл бұрын
thank you bro but i have a question is the code for the java is similar ??
@TechGamerzpro
@TechGamerzpro 4 жыл бұрын
In tts how the audio file can be share Please make the video for this
@zakblacki
@zakblacki 4 жыл бұрын
Can you make video about OpenCV Android such Document Scan Using OCR and MRZ
@androidtutorials9328
@androidtutorials9328 4 жыл бұрын
That seems more of an OpenCV tutorial, but I could look into general text recognition with it.
@roshnibalasubramanian8512
@roshnibalasubramanian8512 4 жыл бұрын
Is there a way to share mp3 files directly from raw without writing them onto external storage first?
@androidtutorials9328
@androidtutorials9328 4 жыл бұрын
I don't believe so no. It needs to be stored on the phone and give the share permission to other apps.
@roshnibalasubramanian8512
@roshnibalasubramanian8512 4 жыл бұрын
@@androidtutorials9328 medium.com/androiddevelopers/sharing-content-between-android-apps-2e6db9d1368b They have mentioned that it is possible, however I am stuck up on the part to create a File object. Can you go through this and help me on what path to give in the constructor of File such that it references to the res/raw directory
@androidtutorials9328
@androidtutorials9328 4 жыл бұрын
There might be a hacky way of doing it, but the general path is to save it on phone first. stackoverflow.com/questions/46827950/how-to-share-audio-file-from-raw-folder-into-social-apps
@roshnibalasubramanian8512
@roshnibalasubramanian8512 4 жыл бұрын
@@androidtutorials9328 Got it, anyway, thank you!
Deep Linking Between Apps With Android
12:16
AndroidTutorials
Рет қаралды 6 М.
Create a FileProvider to store an image on Android
8:22
Brandan Jones
Рет қаралды 6 М.
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 12 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 11 МЛН
Share Image Text using FileProvider |  Android Studio | Kotlin
29:36
Atif Pervaiz
Рет қаралды 3,9 М.
Share Photos & Files Using FileProvider
12:56
AndroidTutorials
Рет қаралды 16 М.
Everything about storage on Android
12:17
Android Developers
Рет қаралды 19 М.
Save Files with Media Store (Android Tutorial)
18:29
Ahmed Guedmioui
Рет қаралды 1 М.
Uris (Unique Resource Identifier) - Android Basics 2023
14:21
Philipp Lackner
Рет қаралды 22 М.
The Full Guide About the DateTime API in Kotlin
18:28
Philipp Lackner
Рет қаралды 17 М.
Is ChatGPT Plus Worth It? A Review after Extensive Use..
20:47
Android component |  Bài 2: Content Provider
32:53
Code4Func - Kỹ thuật lập trình
Рет қаралды 1,5 М.
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 12 МЛН