How to open an img file?

Post your questions and help other users.

Moderator: Martin

Post Reply
Akt
Posts: 133
Joined: 25 May 2014 08:57

How to open an img file?

Post by Akt » 26 Jul 2020 02:38

How to open an jpg or jpeg file.

Tried in open url in browser but not able to do that.
It opens up gallery app but not able to open an img file.

User avatar
Hit
Posts: 91
Joined: 20 Jan 2020 11:31

Re: How to open an img file?

Post by Hit » 26 Jul 2020 04:02

Akt wrote:
26 Jul 2020 02:38
How to open an jpg or jpeg file.

Tried in open url in browser but not able to do that.
It opens up gallery app but not able to open an img file.
Hello, Akt, you can't use that action. What you should use is Start Activity action.

But first, can I ask you if you got the path to the image?

If you do, can you show an example of the path?

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

Re: How to open an img file?

Post by Desmanto » 26 Jul 2020 18:31

Where do you want to open the image? In other 3rd party viewer or built-in Automagic?

For 3rd party app, in most app, you can use intent view. I use MiXplorer Silver, which already have image viewer activity than can be invoked from other app. I use Start Activity.

Start Activity
Action : android.intent.action.VIEW
Data Uri : file:///storage/emulated/0/Download/image.jpg (change to the path of your image or variable)
Data MIME Type : image/*
Explicit Component : Ticked
Package Name : com.mixplorer.silver
Class Name : com.mixplorer.activities.ImageViewerActivity

For other app, try to find the activity that can open the image.

While for built-in, there is no action view image in Automagic. But you can create a widget, and add element image inside. Then to view the image, use show widget and change the path of the image, refresh it to ensure image change. You can add action to the widget to hide the widget after pressed.
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.

Post Reply