> 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.
With quickpics you can also open individual pics by using the 'load App' action and put the file path in the data area.
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
With quickpics you can also open individual pics by using the 'load App' action and put the file path in the data area.
> 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.
> 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')
> 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')
> 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.
--
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.
> 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.
> 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:
>> 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.
> 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
> 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.
What's your device and ROM? Also, are you running the shell script with "use root" UNchecked?
Matt
> 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 .
> > 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..
>
> 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..
>
> 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..
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..
...
...
--
> 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???????
Dont forget to put the "file:///" in front of the file path..
> 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.
>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
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>
> 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..
> 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
--
> Rich,
> Try removing the text in red from your Intent.
I cant believe I missed that... It is working great now.. thanks guys..
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 :>)
> 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?
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.
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 ]