Hi, @vknow360!
Thanks for your reply!
Do I need to attach " file:/// " before /storage … ?
Thanks!
The image is now displaying through this method -
Also, Huge thanks to @Boban for helping us.
Thanks to @mika, @Vishwas & @bodymindpower for helping too!
Thanks a lot!
@vknow360
I would also like to ask, if I can upload the this to cloudinary or not -
Nothing seems to happen when uploading…
Thanks!
I have no idea about that…but shall try tomorrow…
If image component shows picture then everything is correct and will work…I will try tomorrow and share results here
It’s my pleasure.
As an extension developer it is my responsibility to answer questions related to my extensions.
Besides this we are friends too…
Apparently you are getting a different path on your device and this code will not work on other devices, as in my it already contains /storage/emulated/0
Secondly, I get error at app launch if I use only this bloks
Which type of error?
And what error did you get?
This perfectly works for me
TBH, I am developing this app for myself.
Sometimes I capture a screenshot on my phone, just for sake, let’s consider it’s a screenshot of a Dribbble shot, featuring an app’s UI which I am interested in. Now, I want it to be opened on my PC’s chrome browser, to make myself able to view it side-by-side along with developing apps.
I came along an idea, which is very simple as follows -
P.S. I knew apps like this already existed, but I wanted to build one myself
None of the approaches (“solutions”) presented here work on my test device.
Xiaomi Redmi Note 5 (Android 9):
When I check this with my app:
I get this (path / URI):
And the image is displayed on the my device.
My App doesn’t need a timer to get the correct path and display the image.
Oh, Sorry I forgot to hide it
It is required in further processes of my app
Thanks!
see the last screenshot above
There is something wrong in FileTools.
Can you try that with TaifunFile?
Here is my solution that runs on all (my) devices.
(Android 5, 7, 8, 9, 10).
Shared_image.apk (4.8 MB)
I just noticed that I never posted this however, here you go
Probably because of this (two slashes)
it becomes this /storage/emulated/0//DCIM/Screenshots/20200229_10934.jpg