@vknow360 [quote=“vknow360, post:9, topic:55759”]
But you can replace external storage directory path from absolute path and use in the extension.
[/quote]
how to do this ?
for example : i used image picker to pick image from ( SD CARD ) ? , how to do that plz ?
vknow360
(Sunny Gupta)
March 29, 2020, 11:30am
#11
Just replace /storage/emulated/0
2 Likes
@vknow360
Sorry for my many questions …
But how can I replace it as it is generated from extension .
For example, if you picked image from the main memory without any modifications by me, the path will be like this …
/storage/emulated/0/storage/emulated/0/QR.png
and if i replaced /storage/emulated/0 the path will be like this … /storage/emulated/0/QR.png
and i will not can replace it this time …
** sorry for my english **
vknow360
(Sunny Gupta)
March 29, 2020, 11:52am
#14
Nader_El-Sayed:
For example, if you picked image from the main memory without any modifications by me, the path will be like this …
/storage/emulated/0/storage/emulated/0/QR.png
Which component are you using?
Path should be like this:
/storage/emulated/0/QR.png
unless you will pick file from
/storage/emulated/0/storage/emulated/0/
folder.
1 Like
@vknow360 I’m used your .aia …
when i tried to pick image from SD card by image picker , the result will be like that >>
path is : /storage/emulated/0/storage/D08E-901D/1.jpg
and when i tried to write the path manually >>
path is : /storage/emulated/0/D08E-901D/1.jpg
in this case , i need to delete “0” that be after emulated .
how can i to do that , plz ?
@vknow360 i tried , and it worked …
but it worked because the qr.png in main storage not in sd card >>
i only want to decode images from sd card not from main storage
vknow360
(Sunny Gupta)
March 29, 2020, 12:47pm
#19
Can you tell me path of file?
1 Like
@vknow360
/storage/emulated/D08E-901D/1.jpg
vknow360
(Sunny Gupta)
March 29, 2020, 12:51pm
#22
Now I have two questions:
1.Have you more than one sdcard in your phone?
2.What is file’s path in File Explorer?
1 Like
@Boban not working because it delete from image path not from extension path
@vknow360 1- no , only one
2- /storage/emulated/D08E-901D/1.jpg
Boban
(Boban Stojmenovic)
March 29, 2020, 1:03pm
#25
Add a label and show us what you get
2 Likes
Boban
(Boban Stojmenovic)
March 29, 2020, 1:09pm
#29
It’s confusing as you have mentioned multiple paths