Ideas for displaying photos, please.

802 views
Skip to first unread message

Nat101

unread,
Dec 16, 2013, 8:16:17 AM12/16/13
to tas...@googlegroups.com
I am running into problems doing a simple photo frame type app.
The [senior] user sees rows of buttons allowing choice of which album to display (an album is simply a subdirectory of photos on the local storage).
Then I have two ways of achieving my goal, and I have problems with both.
[On a 10" tablet]
1. Use an external photo viewer/photo frame app to display only the photos of the chosen directory.
2. Use a Tasker scene with an image and cycle thru the photos, setting the image in a loop.

Route 1 problem:
I simply can't find an app that I can call from Tasker that reads the DATA passed to it. Either for the entire directory, or for a single photo.

Route 2 problem:
a. The images (height width ratio) are distorted. I have it that when tapped it zooms into another full overlay scene with a huge image, but that gets really distorted. I am probably missing basic knowledge on images and pixels, I also tried a webview of the images, but can't get that to display a local image at all.

In case you are wondering why I am not simply using a photo app in the first place, because the buttons [used by the senior user] are dynamically created (and changes) based on rules, and I can't have the seniors open settings of an app to choose which directory to display, especially since it changes all the time.

Your input IS appreciated.
Thanks.
nat

Rich D

unread,
Dec 17, 2013, 9:33:50 PM12/17/13
to Tasker Google Groups Post

> Route 1 problem:
> I simply can't find an app that I can call from Tasker that reads the DATA passed to it. Either for the entire directory, or for a single photo.

I think this is what you are looking for. Install Quickpic from the play store. It is one of the top picture viewers on the market.

This is the intent i use to get quickpic to open a folder containing pics, It should open with a large thumbnail view of the folder.

Quickpic Task (567)
A1: Variable Set [ Name:%yourfilepath To:storage/sdcard1/A Pic Folders/All pics/my lobster Do Maths:Off Append:Off ]
A2: Run Shell [ Command:am start -a android.intent.action.MAIN -d "file:///%yourfilepath" -c android.intent.category.LAUNCHER -n com.alensw.PicFolder/com.alensw.PicFolder.GalleryActivity -f 0x14000000 Timeout (Seconds):31 Use Root: Store Output In: Store Errors In: Store Result In: ]

I attached the xml as well

I do not think it requires root.

Quickpic_Task.tsk.xml

Bob Hansen

unread,
Dec 18, 2013, 12:08:47 AM12/18/13
to tas...@googlegroups.com
I agree with Rich. QuickPic is an excellent viewer. You can open individual image files like this using Tasker's Send Intent action:

Intent-QuickPic (115)
A1: Variable Set [ Name:%path To:file:///storage/sdcard1/DCIM/PerfectShot/2013-11-05_115135.jpg Do Maths:Off Append:Off ] 
<Open image in QuickPic>
A2: Send Intent [ Action:android.intent.action.VIEW Cat:Default Mime Type:image/* Data:%path Extra: Extra: Package:com.alensw.PicFolder Class: Target:Activity ] 
 

Rich D

unread,
Dec 18, 2013, 4:58:23 AM12/18/13
to Tasker Google Groups Post

With quickpics you can also open individual pics by using the 'load App' action and put the file path in the data area.

Nat101

unread,
Dec 18, 2013, 11:49:53 AM12/18/13
to tas...@googlegroups.com


On Tuesday, December 17, 2013 9:33:50 PM UTC-5, Rich D wrote:

I think this is what you are looking for. Install Quickpic from the play store. It is one of the top picture viewers on the market.

Yes! App looks good. 

This is the intent i use to get quickpic to open a folder containing pics, It should open with a large thumbnail view of the folder.

Quickpic Task (567)
A1: Variable Set [ Name:%yourfilepath To:storage/sdcard1/A Pic Folders/All pics/my lobster

I imported the xml but I need to understand what you are setting the variable to. Are these 3 parameters?
I have mine in: /storage/emulated/0/Pics/Subdir1/Subdir2/whatever. Many subdirs under Pics. 

Thanks
nat

Nat101

unread,
Dec 18, 2013, 11:53:16 AM12/18/13
to tas...@googlegroups.com
Cannot get this to work. Using exactly same variable data as 'load app' which works.
nat
ps tablet is not rooted.

Nat101

unread,
Dec 18, 2013, 11:58:45 AM12/18/13
to tas...@googlegroups.com

With quickpics you can also open individual pics by using the 'load App' action and put the file path in the data area.

Yes! This works. It also allows swiping to view other pics in same directory. 
This might be a workaround if I can't get the shell/intent to work. Simply pass any pic in the subdir you want to display. But I don't have a slideshow. Needs manual swiping.

nat

Rich D

unread,
Dec 18, 2013, 12:10:23 PM12/18/13
to Tasker Google Groups Post

> Cannot get this to work. Using exactly same variable data as 'load app' which works.
> nat
> ps tablet is not rooted.

I just checked and it runs fine w/o root.
What happens when you run it?
Is there a error in the run log?
Turn on menu / preferences / misc / pop up errors
You can also set the 'store errors in' option in the shell command to a variable then flash the variable.

Nat101

unread,
Dec 18, 2013, 1:09:31 PM12/18/13
to tas...@googlegroups.com
run log says 'task ok'
I turned on popup errors, but none reported. (Exited and reloaded Tasker.)

Rich D

unread,
Dec 18, 2013, 1:24:52 PM12/18/13
to Tasker Google Groups Post

> run log says 'task ok'
> I turned on popup errors, but none reported. (Exited and reloaded Tasker.)
>

Hmmmm,, so when you run it nothing happens?

Can you check for errors within the shell action? ( 'save errors to')

Nat101

unread,
Dec 18, 2013, 4:20:06 PM12/18/13
to tas...@googlegroups.com


On Wednesday, December 18, 2013 1:24:52 PM UTC-5, Rich D wrote:

> run log says 'task ok'
> I turned on popup errors, but none reported. (Exited and reloaded Tasker.)
>

Hmmmm,, so when you run it nothing happens?

Correct.  

Can you check for errors within the shell action? ( 'save errors to')

I am not expecting the shell action to work because I don't think I am passing the parameters correctly (in that case) for the folder. As I said earlier, I don't understand the syntax to put into the original variable. It seems like three different parameters there. So I was waiting for a clarification on that. Thanks.

But the send intent does nothing (but reports that it ran ok)  as well as the shell action also did nothing with simply passing a file:///url to a dir when setting the variable in step 1.

Rich D

unread,
Dec 18, 2013, 4:57:45 PM12/18/13
to Tasker Google Groups Post

> I am not expecting the shell action to work because I don't think I am passing the parameters correctly (in that case) for the folder. As I said earlier, I don't understand the syntax to put into the original variable. It seems like three different parameters there. So I was waiting for a clarification on that. Thanks.

Ahh, Sorry about that I got confused when you said you were trying the intent. The shell action is actually an intent as well. The only reason I am using a shell action to send the intent is because it requires flags to be set  and I could not figure out how to do that with the tasker action 'send intent'

So for the shell action....

A1: Variable Set [ Name:%yourfilepath To:storage/sdcard1/A Pic Folders/All pics/my lobster Do Maths:Off Append:Off ]

The variable %yourfilepath  is simply the file path to the folder 'my lobster'   Just make sure there are no backslashes at the beginning or the end of your file path.

Let me know if you have already tried this.

Nat Gross

unread,
Dec 18, 2013, 5:21:01 PM12/18/13
to tas...@googlegroups.com
Do I prefix the file path with "file:///" ?
I tried both ways. nada.
But! The log says shell ok. QickPics exit error.


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/Jf6vAYYPbYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

Rich D

unread,
Dec 18, 2013, 5:30:21 PM12/18/13
to Tasker Google Groups Post

> Do I prefix the file path with "file:///" ?

No, that is already in the shell action.

> I tried both ways. nada.

Ok.

> But! The log says shell ok. QickPics exit error.

I think that means the shell command is in error. Try the 'set error to' method described above. Set it to a global variable so you can check it in variables tab.

> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

Nat101

unread,
Dec 18, 2013, 6:51:34 PM12/18/13
to tas...@googlegroups.com

> I think that means the shell command is in error. Try the 'set error to' method described above. Set it to a global variable so you can check it in variables tab.

ok here is the error:

java.lang.SecurityException: Permission Denial: startActivity asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:1924)
at com.android.commands.am.Am.runStart(Am.java:494)
at com.android.commands.am.Am.run(Am.java:109)
at com.android.commands.am.Am.main(Am.java:82)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
at dalvik.system.NativeStart.main(Native Method) 

Rich D

unread,
Dec 18, 2013, 7:02:16 PM12/18/13
to Tasker Google Groups Post

>> ok here is the error:
>

Not sure but it looks like tasker needs a permission. Try setting tasker as a device admistrator in your android setting's. Under security and screenlock.

You could also try selecting tasker in your android accessibility settings.

Nat101

unread,
Dec 18, 2013, 7:12:20 PM12/18/13
to tas...@googlegroups.com
Did not change the error. Tasker is (was) admin. Also for test gave Tasker JB access rights.
thanks
nat

Matt R

unread,
Dec 18, 2013, 7:14:00 PM12/18/13
to tas...@googlegroups.com
What's your device and ROM?  Also, are you running the shell script with "use root" UNchecked?

Matt

Rich D

unread,
Dec 18, 2013, 7:15:22 PM12/18/13
to Tasker Google Groups Post

> Did not change the error. Tasker is (was) admin. Also for test gave Tasker JB access rights.

Hmmm, found this ... what rom are you running?

https://groups.google.com/forum/m/#!topic/tasker/8uq0dDJjNIA/discussion

Rich D

unread,
Dec 18, 2013, 7:19:08 PM12/18/13
to Tasker Google Groups Post

> What's your device and ROM?  Also, are you running the shell script with "use root" UNchecked?

Hey Matt, I hope I am not wrong on this again. He is running the following shell command without root,

I am running the exact same action without root checked and with root permissions for tasker removed.

Nat101

unread,
Dec 18, 2013, 7:26:45 PM12/18/13
to tas...@googlegroups.com
On Wednesday, December 18, 2013 7:14:00 PM UTC-5, Matt R wrote:
What's your device and ROM?  Also, are you running the shell script with "use root" UNchecked?

Matt
ASUS ME301T  Tablet.
Android 4.2.1 

Nat101

unread,
Dec 18, 2013, 7:27:43 PM12/18/13
to tas...@googlegroups.com
use root is not checked. (Tablet is not rooted.)


On Wednesday, December 18, 2013 7:14:00 PM UTC-5, Matt R wrote:

Nat101

unread,
Dec 18, 2013, 7:30:14 PM12/18/13
to tas...@googlegroups.com
I am running Factory rom from Asus. 

Rich D

unread,
Dec 18, 2013, 7:55:41 PM12/18/13
to Tasker Google Groups Post

> I am running Factory rom from Asus. 

Strange...  could you export the xml of the intent action you built that Bob had recommended. I will try it on my device. I seems intents are not working on your device. Although I believe the 'load app' action with data uses a intent .

Rich D

unread,
Dec 18, 2013, 8:09:14 PM12/18/13
to Tasker Google Groups Post

> > What's your device and ROM?  Also, are you running the shell script with "use root" UNchecked?
>
> Hey Matt, I hope I am not wrong on this again. He is running the following shell command without root,
>

Forgot the command..

Nat101

unread,
Dec 18, 2013, 8:43:31 PM12/18/13
to tas...@googlegroups.com
Ok. Task xml attached.
Note: I have all three activities in the same task, but of course only one methodology is enabled. I also need to change syntax of file path per method I am testing.
Quickpic_Task.tsk.xml

Rich D

unread,
Dec 18, 2013, 8:57:31 PM12/18/13
to Tasker Google Groups Post

>
> Ok. Task xml attached.
> Note: I have all three activities in the same task, but of course only one methodology is enabled. I also need to change syntax of file path per method I am testing.
>

That was a text export.

Use the 'export to sd card' then find Tasker  / tasks  on your sd card and attach that file to the email..

Thanks,  Rich..

Nat101

unread,
Dec 18, 2013, 9:52:52 PM12/18/13
to tas...@googlegroups.com
That's exactly what I did. Please take a look at the file again. It seems like an xml to me. 

Rich D

unread,
Dec 18, 2013, 10:43:13 PM12/18/13
to Tasker Google Groups Post

>
> That's exactly what I did. Please take a look at the file again. It seems like an xml to me. 

Sorry, problems importing on my end. I will have to try again tomorrow, this is the first time I have tried a import since upgrading to JB and it is not working..

Rich D

unread,
Dec 19, 2013, 10:25:55 AM12/19/13
to Tasker Google Groups Post

Ok, got it download and here is what i have so far.

I found 1 error in the intent from Bob..

You had...  Package:com.alensw.PicFolder
It should be.... com.alensw.PicFolder

For the data in the Package field

However after fixing this I can not get the intent to work or the 'load APP' with data to work either

The only thing that does work for me is the original shell action that I sent you...

@Bob, I am assuming the intent you posted is currently working on your device?

Do we need any "" to compensate for spaces in the file paths?

Thank, Rich..

...

Bob Hansen

unread,
Dec 19, 2013, 10:52:52 AM12/19/13
to tas...@googlegroups.com
It works perfectly on my Droid RAZR HD, android 4.1.2
I tried it with a space in a folder name and it worked without quotes. With quotes it fails.

Nat Gross

unread,
Dec 19, 2013, 11:37:36 AM12/19/13
to tas...@googlegroups.com
Well the extra Package: was my mistake. Bob was simply pointing out where to put that.
Anyhow, there is progress. The program now loads but does not display the photo. 
On a blank screen it reports 'com.android.gallery3d has stopped'.



...

--

Bob Hansen

unread,
Dec 19, 2013, 11:59:07 AM12/19/13
to tas...@googlegroups.com
>On a blank screen it reports 'com.android.gallery3d has stopped'.

That message does not seem to be related to QuickPic.
Are you using a different app to open the file?

Nat101

unread,
Dec 19, 2013, 12:22:06 PM12/19/13
to tas...@googlegroups.com
This happens when using the intent. I don't really understand the intent stuff. There is no app name mentioned there.
Update on the data option: It stopped working. I don't know why. I did install some other unrelated apps since yesterday. Maybe there is a conflict with other apps. scary.
nat

Bob Hansen

unread,
Dec 19, 2013, 12:43:44 PM12/19/13
to tas...@googlegroups.com
I did a google search for "process com.android.gallery3d has stopped".

The posts for this problem indicate that it is caused by corruption of data.
Do your picture apps work correctly when accessing the same file?

Nat101

unread,
Dec 19, 2013, 12:48:15 PM12/19/13
to tas...@googlegroups.com
I am using Quickpic directly on the same photo(s) without any problem.
Does Quickpic need to be the default app in order for the intent to work? Maybe the intent is loading some other picture app.

Rich D

unread,
Dec 19, 2013, 1:14:55 PM12/19/13
to Tasker Google Groups Post

> I am using Quickpic directly on the same photo(s) without any problem.
> Does Quickpic need to be the default app in order for the intent to work? Maybe the intent is loading some other picture app.
>

Ok, I got Bobs intent to work, not sure how but out of desperation I copied just the intent out of the task / made a new task and pasted just the intent with the file path written directly into it. It makes no sense but it is working for me now, here is the task i made, perhaps try downloading this and put your file path directly into it???????

Qtest.tsk.xml

Rich D

unread,
Dec 19, 2013, 1:17:36 PM12/19/13
to Tasker Google Groups Post

Dont forget to put the "file:///" in front of the file path..

Nat101

unread,
Dec 19, 2013, 3:14:04 PM12/19/13
to tas...@googlegroups.com
Woops! Yes!
I had forgotten to prefix file:///. (The shell version doesn't want it.)
I just added the file:/// prefix. And the intent works!!!
nat

Rich D

unread,
Dec 19, 2013, 4:41:39 PM12/19/13
to Tasker Google Groups Post

> Woops! Yes!
> I had forgotten to prefix file:///. (The shell version doesn't want it.)
> I just added the file:/// prefix. And the intent works!!!

Okay, now that we have determined your device will run A Tasker action send intent. 

While I was trying to get the intent working I ran across this old post, I believe this is exactly what you originally asked for. If I'm not mistaken you want to open the app directly to a slideshow correct?  Search this group for---

Tasker, Digital Photo Frame Premium, and Autorun

The shell action I provided opens Quickpic to a thumbnail view of the folder, Quickpic does have a slideshow option however you would likely have to contact the developer to get the proper intent to open the slide show.

Nat101

unread,
Dec 19, 2013, 5:00:10 PM12/19/13
to tas...@googlegroups.com
On Thursday, December 19, 2013 4:41:39 PM UTC-5, Rich D wrote:

>Okay, now that we have determined your device will run A Tasker action send intent. 

>While I was trying to get the intent working I ran across this old post, I believe this is exactly what you originally asked for. If I'm not mistaken you want to open the app >directly to a slideshow correct?  Search this group for---

>Tasker, Digital Photo Frame Premium, and Autorun

Correct. That was my original intent:)
Thank you [all] much!
-nat 
 

Rich D

unread,
Dec 19, 2013, 5:11:09 PM12/19/13
to Tasker Google Groups Post

Here is the Quickpic manifest, I believe what you would need is in here someplace but it would take a Intent savvy user to figure it out.... That would not be me... :(

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="125"
    android:versionName="3.4.1"
    android:installLocation="auto"
    package="com.alensw.PicFolder">
    <uses-sdk
        android:minSdkVersion="5"
        android:targetSdkVersion="16"/>
    <uses-permission
        android:name="android.permission.NFC"/>
    <uses-permission
        android:name="android.permission.SET_WALLPAPER"/>
    <uses-permission
        android:name="android.permission.WAKE_LOCK"/>
    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission
        android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
    <application
        android:label="@2131296256"
        android:icon="@2130837513"
        android:name=".QuickApp"
        android:logo="@2130837513"
        android:hardwareAccelerated="true">
        <activity
            android:label="@2131296256"
            android:name=".GalleryActivity"
            android:taskAffinity="android.task.pictures"
            android:configChanges="keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action
                    android:name="android.intent.action.MAIN"/>
                <category
                    android:name="android.intent.category.LAUNCHER"/>
                <category
                    android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="android.intent.action.GET_CONTENT"/>
                <category
                    android:name="android.intent.category.OPENABLE"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="image/*"/>
                <data
                    android:mimeType="video/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/image"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="android.intent.action.PICK"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="image/*"/>
                <data
                    android:mimeType="video/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/image"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="android.intent.action.VIEW"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="image/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/image"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="com.android.camera.action.REVIEW"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="image/*"/>
                <data
                    android:mimeType="video/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/image"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/video"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="com.cooliris.media.action.REVIEW"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="image/*"/>
                <data
                    android:mimeType="video/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/image"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/video"/>
            </intent-filter>
        </activity>
        <activity
            android:label="@2131296305"
            android:name=".CropActivity"
            android:configChanges="keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action
                    android:name="android.intent.action.EDIT"/>
                <action
                    android:name="com.android.camera.action.CROP"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <category
                    android:name="android.intent.category.ALTERNATIVE"/>
                <category
                    android:name="android.intent.category.SELECTED_ALTERNATIVE"/>
                <data
                    android:mimeType="image/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/image"/>
            </intent-filter>
        </activity>
        <activity
            android:label="@2131296256"
            android:name=".PlayerActivity"
            android:configChanges="keyboardHidden|orientation|screenSize">
            <intent-filter>
                <action
                    android:name="android.intent.action.VIEW"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="video/*"/>
                <data
                    android:mimeType="vnd.android.cursor.dir/video"/>
            </intent-filter>
        </activity>
        <activity-alias
            android:label="@2131296256"
            android:name=".StreamingActivity"
            android:enabled="@2131099648"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:targetActivity="com.alensw.PicFolder.PlayerActivity">
            <intent-filter>
                <action
                    android:name="android.intent.action.VIEW"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="video/*"/>
                <data
                    android:scheme="http"/>
                <data
                    android:scheme="rtsp"/>
            </intent-filter>
        </activity-alias>
        <activity
            android:label="@2131296395"
            android:name=".WallpaperActivity">
            <intent-filter>
                <action
                    android:name="android.intent.action.SET_WALLPAPER"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="android.intent.action.ATTACH_DATA"/>
                <category
                    android:name="android.intent.category.DEFAULT"/>
                <data
                    android:mimeType="image/*"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".PathListActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"/>
        <activity
            android:label="@2131296364"
            android:name=".MainPreference"
            android:configChanges="keyboardHidden|orientation|screenSize"/>
        <provider
            android:name=".FileProvider"
            android:exported="true"
            android:authorities="com.alensw.PicFolder.FileProvider"
            android:grantUriPermissions="true"/>
        <uses-library
            android:name="com.sec.android.app.multiwindow"
            android:required="false"/>
        <meta-data
            android:name="com.sec.android.support.multiwindow"
            android:value="true"/>
    </application>
</manifest>

Nat101

unread,
Dec 19, 2013, 5:17:59 PM12/19/13
to tas...@googlegroups.com
Hey, that's neat. Will give me a chance to learn about this topic.
thanks again.

Nat101

unread,
Dec 25, 2013, 5:11:33 PM12/25/13
to tas...@googlegroups.com
A good update on the situation and a question...

1. Rich, I decoupled your script into an intent and it...works!

2. I contacted the developer of QuickPics and explained I have the intent (Bob's) that displays a photo, but I want Tasker to launch a slide show. (I also told him that the folks on this forum like his program.) He replied (!) that the only way to [currently] do  that is to have the intent point to a file/photo uri (not a dir) AND to set QuickPic.slide_show=true. <end of email> 
So now the question is where do I tell Tasker to set xyz true. I tried in the "extra" field of the Tasker intent setting, but it didn't do a thing.
Thanks
nat

Bob Hansen

unread,
Dec 25, 2013, 5:58:48 PM12/25/13
to tas...@googlegroups.com
Thanks for passing on the info from the QuickPic developer.

Spent a few minutes to see if I could get a slideshow to start. This works, but I want to find a way to specify a diffferent directory.

Intent - Slideshow (124)
        <Open slide show in QuickPic>
        A1: Send Intent [ Action:android.intent.action.VIEW Cat:Default Mime Type:image/* Data:content://media/external/images/media Extra:QuickPic.slide_show:true Extra: Package:com.alensw.PicFolder Class: Target:Activity ]

Nat101

unread,
Dec 25, 2013, 7:28:54 PM12/25/13
to tas...@googlegroups.com
Yes! Mission accomplished!
I don't understand the problem you describe with a different directory.
I can point it to any directory. The trick is to point it to a photo, any photo, inside that directory using a uri. Then it will launch a slide show for all photos in that directory, starting with the photo passed to it.

Thank a mil.
nat

Rich D

unread,
Dec 25, 2013, 8:29:27 PM12/25/13
to Tasker Google Groups Post

> I can point it to any directory. The trick is to point it to a photo, any photo, inside that directory using a uri. Then it will launch a slide show for all photos in that directory, starting with the photo passed to it.

Very cool..

I do not really understand how the whole uri thing works or exactly what it is.   Could you explain how you get the uri for a file?

Thanks,   Rich..

Nat101

unread,
Dec 25, 2013, 10:59:51 PM12/25/13
to tas...@googlegroups.com
URI (uniform resource identifier) is just the official term for a file using the file:// notation. A URL is for a web page prefixed with http://, and for a local disk file it's called a uri and  is prefixed with file://. Note that third / (if used) is really the beginning of the path name from root, so it looks like file:///, but for a relative path you don't want that 3rd /.
Anyhow if your pics are in /storage/pics/family and you have a abc.jpg residing there you want a uri of file:///storage/pics/family/abc.jpg passed with the intent in order for the slide show to start automatically. Of course with Tasker variables you need not know the file name in advance, any photo will do. (via Tasker List files.)
User chooses an 'album' which is simply a directory, Tasker lookup any photo in that directory and set its uri notation to variable. Pass that to the intent. da da . slide show of that dir only. 
hope I didn't talk too much.
nat

Rich D

unread,
Dec 26, 2013, 6:37:29 AM12/26/13
to Tasker Google Groups Post

> hope I didn't talk too much.

Not at all, thanks for the great info..

I can not seem to get it to work at all, nothing happens when i run this action in tasker..

Quickslide Show (574)
A1: Send Intent [ Action:android.intent.action.VIEW Cat:Default Mime Type:image/* Data:content:file:///storage/sdcard0/A Pic Folders/All pics/test/IMG_20131224_153545_438.jpg Extra:QuickPic.slide_show:true Extra: Package:Package:com.alensw.PicFolder Class: Target:Activity Continue Task After Error:On ]

I have tried.....

content:file:///storage/sdcard0/A Pic Folders/All pics/test/IMG_20131224_153545_438.jpg

file:///storage/sdcard0/A Pic Folders/All pics/test/IMG_20131224_153545_438.jpg

And

file://storage/sdcard0/A Pic Folders/All pics/test/IMG_20131224_153545_438.jpg

But nothing works.. Could you please post a description of your working intent..

Thanks,   Rich

Bob Hansen

unread,
Dec 26, 2013, 9:57:33 AM12/26/13
to tas...@googlegroups.com
Here is what works for me.

Intent - Slideshow (124)
        A1: Variable Set [ Name:%path To:file:///storage/sdcard1/DCIM/PerfectlyClear/2013-07-04_20-15-11_HDR_PerfectlyClear_0001.jpg Do Maths:Off Append:Off ]
        <Open slide show in QuickPic>
        A2: Send Intent [ Action:android.intent.action.VIEW Cat:Default Mime Type:image/* Data:%path Extra:QuickPic.slide_show:true Extra: Package:com.alensw.PicFolder Class: Target:Activity ]

Of course, you could skip the variable and put the URI directly into the Send Intent action.

Hope this works for you!

Nat Gross

unread,
Dec 26, 2013, 10:01:35 AM12/26/13
to tas...@googlegroups.com
 Package:Package:com.alensw.PicFolder
??? Are you prefixing "Package:" in front of "com.alensw.PicFolder" ?
The package field should contain only:  com.alensw.PicFolder
nat



--

Bob Hansen

unread,
Dec 26, 2013, 10:20:19 AM12/26/13
to tas...@googlegroups.com
Rich,
Try removing the text in red from your Intent.

Rich D

unread,
Dec 26, 2013, 10:49:46 AM12/26/13
to Tasker Google Groups Post

> Rich,
> Try removing the text in red from your Intent.

I cant believe I missed that... It is working great now.. thanks guys..

Bob Hansen

unread,
Dec 26, 2013, 11:13:23 AM12/26/13
to tas...@googlegroups.com
I can't believe you missed it either! But at least it gave me the opportunity to give back a small portion of the help you have given me over the past year :>)

Nat101

unread,
Dec 26, 2013, 11:25:26 AM12/26/13
to tas...@googlegroups.com


On Thursday, December 26, 2013 11:13:23 AM UTC-5, Bob Hansen wrote:
I can't believe you missed it either! But at least it gave me the opportunity to give back a small portion of the help you have given me over the past year :>)
echo echo echo  

Christian Giertler

unread,
Sep 25, 2016, 4:50:09 AM9/25/16
to Tasker
Sorry to resurrect this old thread. I use this method andit works fine, but is it possible to open a Samba folder? Setting %path to smb://192.168.1.1/foobar/folder1/pics/123.jpg does not work :-(
Does anyone have an idea? If not, where can I ask such a question?

Thanks,
Chris

Rich D

unread,
Sep 25, 2016, 9:00:11 AM9/25/16
to Tasker Google Groups Post


> Sorry to resurrect this old thread. I use this method andit works fine, but is it possible to open a Samba folder? Setting %path to smb://192.168.1.1/foobar/folder1/pics/123.jpg does not work :-(
> Does anyone have an idea? If not, where can I ask such a question?
>

Could you explain what a  'Samba folder'   is?

Christian Giertler

unread,
Sep 25, 2016, 11:39:21 AM9/25/16
to Tasker
Hi,
thanks for your quick response.

I mean a folder in a Samba (a.k.a. SMB/CIFS) share. QuickPic allows to open pictures from remote servers (or cloud services) like Dropbox, Google Drive, Owncloud, Samba and some others. My picture collection is not locally saved on my device but on my home server. I can open it in QuickPic, show a slideshow and save a shortcut to my desktop just like with a local picture folder. But I did not find a way to start this remote folder slideshow with the Tasker intent.

Rich D

unread,
Sep 25, 2016, 12:59:34 PM9/25/16
to Tasker Google Groups Post


But I did not find a way to start this remote folder slideshow with the Tasker intent.

But I did not find a way to start this remote folder slideshow with the Tasker intent.

Perhaps a email to the developer of quickpic. I would send the existing intent and ask for one to start your query.

To find it by yourself you should be able to find the information in the manifest. You can download a manifest viewer from the play store.

Here is a good link for intent information.

http://forum.xda-developers.com/showthread.php?t=2489449

Christian Giertler

unread,
Oct 5, 2016, 1:34:26 AM10/5/16
to Tasker
Thank you very much, your help is really appreciated.
I will try to contact the dev.

Cheers,
Chris

Logan Fury

unread,
Jan 25, 2017, 4:43:27 PM1/25/17
to Tasker
Ive been struggling with Web Viewer in Scenes to import animated gifs, and this post here works on my phone in 1/2017 (note 4/Lollipop/unrooted)

Ive found its necessary to have an animated .gif alone in a subdir to be able to be loaded, if more than 1 pic is in the end path QuickPic brings up an index of pics to choose from instead of auto loading the named pic in the code, but otherwise this has just become my dependable solution to getting animated gifs displayed. Thank you so much Mr. Hansen

On Tuesday, December 17, 2013 at 9:08:47 PM UTC-8, Bob Hansen wrote:
I agree with Rich. QuickPic is an excellent viewer. You can open individual image files like this using Tasker's Send Intent action:

Intent-QuickPic (115)
A1: Variable Set [ Name:%path To:file:///storage/sdcard1/DCIM/PerfectShot/2013-11-05_115135.jpg Do Maths:Off Append:Off ] 
<Open image in QuickPic>
A2: Send Intent [ Action:android.intent.action.VIEW Cat:Default Mime Type:image/* Data:%path Extra: Extra: Package:com.alensw.PicFolder Class: Target:Activity ] 
 
Reply all
Reply to author
Forward
0 new messages