Hey everyone,
I am just trying to send a simple .mp3 file from my app via another app (e.g. telegram) - can't be too hard, right?
But right know, I'm really frustrated: nothing seems to work properly and since my Google-fu finally left me, I thought I could ask here for help.
Now for the specs:
I want to make a simple application, where you are able to share some sounds with your friends (something soundboard-like). I almost got it once, but the shared files weren't audio files, but some kind of html?
First thing that is not clear to me: Where should I actually put the sound files?
I use them in my app, so I thought res/raw sounds kind of right? Or should it be a different directory, to make it easier to share? What does the android.file:// uri refer to?
I tried copying the files to the sd-card, but that didn't work out. Why can't you share raw files properly?
When do I use FileProvider?
So many questions, thank you!
I am just trying to send a simple .mp3 file from my app via another app (e.g. telegram) - can't be too hard, right?
But right know, I'm really frustrated: nothing seems to work properly and since my Google-fu finally left me, I thought I could ask here for help.
Now for the specs:
I want to make a simple application, where you are able to share some sounds with your friends (something soundboard-like). I almost got it once, but the shared files weren't audio files, but some kind of html?
First thing that is not clear to me: Where should I actually put the sound files?
I use them in my app, so I thought res/raw sounds kind of right? Or should it be a different directory, to make it easier to share? What does the android.file:// uri refer to?
I tried copying the files to the sd-card, but that didn't work out. Why can't you share raw files properly?
When do I use FileProvider?
So many questions, thank you!