Hi, i am trying to read a list of images from a directory but i cant get images. when i push the buttons i cant get the display image in canvas. what is my error?
this is using file reader
using saf
using asd
Hi, i am trying to read a list of images from a directory but i cant get images. when i push the buttons i cant get the display image in canvas. what is my error?
this is using file reader
using saf
using asd
You have got yourself in a complete muddle.
Only your last image has any chance of displaying an image.
Show the full path where you are saving your images.
this is the full path /storage/emulated/0/Download/images
inside file images are 4 images with the name imagen1.png,imagen2.png, ...
and my others images where is the error please i need understand how can call files list
then this has nothing to do with the ASD.
Has the same app saved these image files to that directory or have they come from another app or location ?
You need to read and understand this:
so i need modify and use the full path? file:///storage/emulated/0/Download/images/
is correct? and too use read images audio external blocks?
No, it is external storage (which is different from an external sdCard). Read the good advice above.
No, the absolute path is OK.
its correct the blocks for file component? and saf? or how need to join the blocks for working?
You can read images from any location on all Android versions (without SAF). But if the images are not created by the app itself, you must request READ_EXTERNAL_STORAGE
on Android < 13 and READ_MEDIA_IMAGES
on Android 13+.
See also here: How to access non-media & media files on Android 11+
some example to read a list of images? i am trying to read a list of images external using this blocks
i am using the clock and the route list of images
i am playing using videoplayer and a list of external images but i dont know if its ok using taifun file extension and the block list directory to get the sequence play images
proyectoanim(1).aia (51.3 KB)
Did you read my last post (post #13)?
yes i read your last post i will try using the legacy option to read the list of images
I'm talking about READ
permissions on Android 13+ und Android < 13.
yes but its a little confuse because my images are created using save canvas list images and now to read i need read using the route that are the list images. so i need to use read external storage no?
Ok, then you (should) need only WRITE
permission on Android < 11 (because READ
permission is automatically granted with WRITE
permission on Andoid < 11).