Page 1 of 1
How to open an img file?
Posted: 26 Jul 2020 02:38
by Akt
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.
Re: How to open an img file?
Posted: 26 Jul 2020 04:02
by Hit
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?
Re: How to open an img file?
Posted: 26 Jul 2020 18:31
by Desmanto
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.