Displaying an image

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Displaying an image

Post by husky » 24 Jan 2018 01:42

Hello,

I need to display an image stored in a folder.

I got this far:

Init Variable Image fetches the image.
Modify Image resizes it.

I do not want to fetch it from the web. That would be too easy.

Question: How do I show the image on my tablet?


Thank You for any hint.

Husky
"Basic research is what I'm doing when I don't know what I'm doing"

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Displaying an image

Post by Desmanto » 24 Jan 2018 08:28

Just use any built-in image viewer. But usually it has to be invoked using start activity, which is a little tricky. And you have to save the file after modification before you can open it in other app.

The better way is to use widget. Just put your image at the widget and show the widget. Add click or double click action to hide the widget. There is no need to resize the image, as the widget automagically fit it to the image container. Or you change the size of the widget/image container itself.

Pro tip : You can even use action Save Widget to Image File, to save the widget as image. That is one the fastest way you can collage picture/screenshot. I use this to concat the SS first before sharing. So I don't have to upload so many file.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Re: Displaying an image

Post by husky » 24 Jan 2018 14:15

Hi Desmanto,

Thanks for the reply.

I'm having trouble visualizing the steps to achieve your options.

The pro tip seems to be the best one to start with
I'm a bit braindead right now.
I'll try to test the options and then get back to you.


Best Regards


Husky
"Basic research is what I'm doing when I don't know what I'm doing"

User avatar
husky
Posts: 132
Joined: 29 Oct 2016 13:41
Location: Omaha, Nebraska, USA
Contact:

Re: Displaying an image

Post by husky » 24 Jan 2018 15:48

Hi Desmanto,

Using the pro hint, the problem I was running into has been solved.

Thanks again for your invaluable help. :)

Best Regards

Husky
"Basic research is what I'm doing when I don't know what I'm doing"

Post Reply