Closed jansvanda closed 3 years ago
android:requestLegacyExternalStorage="true" (in manifest) have you tried this ?
android:requestLegacyExternalStorage="true" (in manifest) have you tried this ?
Yeah tried several times, Thought that would definitely clear it, but no .....
You ve declared these permissions inside manifest which is ok but you should also declare (or ask) runtime permissions (+6.0) inside your java or kotlin code, have you declared them too?
Oh yeah that was it!!! Thanks a ton!
private fun requestPermission() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
requestPermissions(
arrayOf(Manifest.permission.WRITE_EXTERNAL_STORAGE),
REQUEST_WRITE_PERMISSION
)
} else {
Log.i(Config.TAG, "Shit permissions.")
}
}
You re welcome 👍🏻
Hello, Unfortunately none of these solutions are working for me. What I did so far :
The file I'm trying to input is a file named 'in.mp3' located in /storage/emulated/0/Download
I still get « permission denied »
What should I do please ? Thanks.
Hello, Unfortunately none of these solutions are working for me. What I did so far :
- Add permissions to manifest
- Add android:requestLegacyExternalStorage="true to manifest
- Add runtime permission (no permission asked because I granted them)
The file I'm trying to input is a file named 'in.mp3' located in /storage/emulated/0/Download
I still get « permission denied »
What should I do please ? Thanks.
How do you reference the file? What is the file path you pass?
Description When running a command
-i /storage/emulated/0/DCIM/Camera/VID_20210311_160728.mp4 -i /sdcard/DCIM/mockup.png -filter_complex...
on a real device or emulator, the logcat says
E/mobile-ffmpeg: /storage/emulated/0/DCIM/Camera/VID_20210311_160728.mp4: Permission denied
i inserted even those two permissions in manifest
I included this lib offline inside the lib folder and added
Expected behavior Run without Error
Current behavior Permission denied error
Screenshots![image](https://user-images.githubusercontent.com/23197316/111157215-eba54e80-8596-11eb-835f-f0dd572735d5.png)
Environment
Thanks in advanced for any help