@vknow360 ok i will do it now .
@Boban i just need to decode qr image from sd card , but the extension auto generate this path " /storage/emulated/0 " and added it to any other path . and this is the problem .
@vknow360 ok i will do it now .
@Boban i just need to decode qr image from sd card , but the extension auto generate this path " /storage/emulated/0 " and added it to any other path . and this is the problem .
Looking at this, it seem to have space in it
Your aia doesn’t tell me much however, may I ask do you have folders named
if so the code above wont work
That’s why a suggested this so we can see your path
ok i will do it now
see that plz , the first label is the image path
and the second label is the final path
in this case we need to delete /0/storage
Unfamiliar with that path is your phone rooted
@Boban my phone is not rooted…
The problem in the extension because it have a defult path in thier source… Do you understand me?
what happens when you use /1.jpg
as path?
noting because this will search in main storage…
But the image in sd card not in the main storage…
Do you know! If i tried /1.jpg
The path will be like that : /storage/emulated/0/1.jpg
And this is right… If was the file in main storage…
But the file in sd card, that is mean the path will be : /storage/emulated/sdcard/1.jpg
That is required from you @vknow360 to delete " /0 " from your extension source… Plz…
Do you understand me?
Are you even able to load image from that path in a image component
Yes…
I only want from you @Boban @vknow360 to understand that the problem from extension not blocks…
The extension dont allow to decode images from sd card
any Solution, plz ?
i want to delete /0 from extension defult path
Why don’t you temporarily copy the file to /storage/emulated/0
and delete it from the directory once done reading the QR code?
afaik the image picker is only able to pick from the internal sdcard
also your path to your external sdcard does not seem to be correct…
you can find out the correct path after using the AvailableStorageDirectories method from the file extension App Inventor Extensions: File | Pura Vida Apps
Taifun
3 posts were split to a new topic: TaifunFile.AvailableStorageDirectories method does not provide external sdcard on huawei y7 prime 2018 . android 8