I'm trying to share an audio(.mp3) from a 3rd app to my android app. When I receive the audio and I get the intent info (Uri soundUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM)), the Uri has wrong data. The path is correct but the filename has been renamed with numbers (5348 for example) and no extension, the real filename was AUDIO-6151616.mp3
So, full path is /storage/emulated/0/Download/AUDIO-6151616.mp3 but my Intent Uri is /storage/emulated/0/Download/5348
If I share this audio from another 3rd party app (I’m using file explorer apps) it seems to work fine, but if I use others apps or even “Native” Downloads app (on Moto G) it does not.
What am I missing?
Thanks in advance
Uriproperly. - CommonsWare