Got Runtime Error /storage/emulate/0/resized.jpg permission denied

Hi all.
Used Android 5.1 phone.
got permission granted, and file copy work.
uploaded dog.jpg and code:
code1

error:

thanks for help.

Are you using the latest version 3 9 of the extension from here?

How does your method getASD look like?

Taifun

1 Like

Thanks.
I used that extension.
and the getASD:

getasd

Try file scope App to get the correct path to ASD - application specific directory

Taifun

1 Like

Great.
Thanks a lot, it works after modified getASD scope to APP.
it works with:

still got error when with:
errorwith

error:
still

where:
where

why and is it possible to rename the object when resize it?

It looks like the extension is not able to create directories... just store the resized picture directly in ASD like this

Screenshot_20250625_161511_DuckDuckGo

Taifun

1 Like

good, its works now to rename.

the testing shown a strange phenomenon:
seems the resize method A (#4 former) resulted less storage and latter method B (#4 latter) generated much more storage?

I didn't check the data of them, but the APP run well by method A and failed by method B of : Memory allocation failed!

just wonder if there may be some key tech in kernel?

your method A overwrites the original image, which means in total you need less storage
Taifun

1 Like

genius explanation.
thanks.