Im looking now to do a slideshow instead of a single image. Can anyone please provide the proper shell command or send intent or whatever is necessary to accomplish 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/euLGoELHzOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
I was hoping there was a slight editing of the code presented in that thread that would launch a slideshow instead of an individual image, but thought it better to start my own slideshow thread than "hijack" the image thread off on a tangent :)
Could you post a exported description of the intent that did does work just after reboot?
Could you post a exported description of the intent that did does work just after reboot?
--
sorry, have not had time to look look at this. These are always just trial and error for me..
--
--
--
unfortunately, same error at action 12 on both my Lollipop 5.1.1 and KitKat 4.4.0 platforms.
unfortunately, same error at action 12 on both my Lollipop 5.1.1 and KitKat 4.4.0 platforms.could you post the exported description? I just tried importing to my droid 4 and it did not import correctly..
im happy to if you can tell me how to get to that info please
ah gotcha, here you are, as run with my edits:
could you try this one. You might have to open quick pic through the home icon once and back all the way out then try the tasker task again.
--
Working perfectly on Lollipop 5.1.1
No Tasker errors in Marshmallow 6.0.1 but a Load Failed from QuickPic even though I previously navagated to the directory and opened the first image
No Tasker errors in Marshmallow 6.0.1 but a Load Failed from QuickPic even though I previously navagated to the directory and opened the first imageI am getting similar issues. try opening quick pic from the home screen and then back out with back button. then try intent.
identical result, QuickPic "Load Failed" Screen
identical result, QuickPic "Load Failed" Screenon both deviuces?
using the home button to stop the task seems to upset the script as well. When I try to launch it a second time after using home, it opens the last pic it was at and stays at that picture rather than starting slideshow
using the home button to stop the task seems to upset the script as well. When I try to launch it a second time after using home, it opens the last pic it was at and stays at that picture rather than starting slideshowThanks for the info... I will try some other flags.....
Disregard last post. This one seems very stable.
Java Slide Show_4 (64)
A1: Variable Set [ Name:%new_path To:/storage/sdcard0/my lobster/IMG_20141027_204357_937.jpg Recurse Variables:Off Do Maths:Off Append:Off ]
A2: Java Function [ Return:myfile Class Or Object:File Function:new
{File} (String) Param:%new_path Param: Param: Param: Param: Param: Param: ]
A3: Java Function [ Return:myuri Class Or Object:Uri Function:fromFile
{Uri} (File) Param:myfile Param: Param: Param: Param: Param: Param: ]
A4: Java Function [ Return:slideintent Class Or Object:Intent Function:new
{Intent} () Param: Param: Param: Param: Param: Param: Param: ]
A5: Java Function [ Return: Class Or Object:slideintent Function:setAction
{Intent} (String) Param:android.intent.action.VIEW Param: Param: Param: Param: Param: Param: ]
A6: Java Function [ Return: Class Or Object:slideintent Function:addCategory
{Intent} (String) Param:android.intent.category.DEFAULT Param: Param: Param: Param: Param: Param: ]
A7: Java Function [ Return: Class Or Object:slideintent Function:setDataAndTypeAndNormalize
{Intent} (Uri, String) Param:myuri Param:image/* Param: Param: Param: Param: Param: ]
A8: Java Function [ Return: Class Or Object:slideintent Function:setPackage
{Intent} (String) Param:com.alensw.PicFolder Param: Param: Param: Param: Param: Param: ]
A9: Java Function [ Return: Class Or Object:slideintent Function:setComponent
{Intent} (ComponentName) Param:com.alensw.PicFolder/.GalleryActivity Param: Param: Param: Param: Param: Param: ]
A10: Java Function [ Return: Class Or Object:slideintent Function:putExtra
{Intent} (String, boolean) Param:QuickPic.slide_show Param:true Param: Param: Param: Param: Param: ]
A11: Java Function [ Return: Class Or Object:slideintent Function:setFlags
{Intent} (int) Param:slideintent.FLAG_ACTIVITY_NEW_TASK Param: Param: Param: Param: Param: Param: ]
A12: Java Function [ Return: Class Or Object:slideintent Function:addFlags
{Intent} (int) Param:slideintent.FLAG_ACTIVITY_MULTIPLE_TASK Param: Param: Param: Param: Param: Param: ]
A13: Java Function [ Return: Class Or Object:slideintent Function:addFlags
{Intent} (int) Param:slideintent.FLAG_ACTIVITY_CLEAR_TOP Param: Param: Param: Param: Param: Param: ]
A14: Java Function [ Return: Class Or Object:CONTEXT Function:startActivity
Could you also check in you quick pic settings. Under 'Browser' Do you have the " Open last folder" checked ? If so try unchecking to see if it makes a difference.Thanks, Rich..
--
> I rebooted the Lolli 5.1.1 platform and went into Tasker, and added the following to your script:
>
> A1 Launch App - QuickPic *NO DETAILS IN DATA*
> A2 Run Shell - input keyevent 3 *use root enabled*
> A3 Wait - 2 seconds
>
> and it launched like a charm.
>
> I then launched the following QuickPic Task to navigate away from the image directory your script is edited to use:
>
> Ani Grand Illusion (147)
> A1: Variable Set [ Name:%files(%rand) To:Download/iPhone Wallpapers/GrnFRAME.png Recurse Variables:Off Do Maths:Off Append:Off ]
> A2: Show Scene [ Name:Random Image Display As:Overlay, Blocking, Full Window Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:On Show Over Keyguard:On Continue Task Immediately:On ]
> A3: Run Shell [ Command:am start -a android.intent.action.MAIN -d "file:///storage/emulated/0/Download/iPhone Wallpapers/agi.gif" -c android.intent.category.LAUNCHER -n com.alensw.PicFolder/com.alensw.PicFolder.GalleryActivity --user 0 --activity-clear-task --activity-clear-top Timeout (Seconds):0 Use Root:Off Store Output In: Store Errors In: Store Result In: ]
>
> Then I tried my addition and it worked perfectly, navigating right back to slideshow directory from iPhone Wallpapers and starting a slideshow.
>
It is not clear how you are starting the slide show. The intent in A3 will not start it.
I have already found a similar work around that does not require root. You just need to use the Tasker launch app action as you did followed by a intent with the correct flags. I can post that for you later. I am still not satisfied with this approach. It should be possible to get it with just one intent. So I am still working on it. It turns out the only thing that puts it into the state where I get a load failed is when QP is either killed by android or rebooted.
--
I believe I was incorrect about the shell action requiring root. These 2 intents are working on both of my devices. The first intent just opens the main QP app with no data. Then the next intent will start the slide show. I am starting to think this is a bug in the QP app. It seems that once QP has been killed by android or a reboot it requires the app to be launched as just the root app before you can start the slide show with a intent. You may need to increase the wait to give the first iteration time to load.
Shell Slide (66)
A1: Run Shell [ Command:am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n com.alensw.PicFolder/com.alensw.PicFolder.GalleryActivity --user 0 Timeout (Seconds):0 Use Root:Off Store Output In: Store Errors In: Store Result In: ]
A2: Wait [ MS:501 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: Run Shell [ Command:am start -a android.intent.action.MAIN -d "file:///storage/sdcard0/my lobster/IMG_20141027_204357_937.jpg" -c android.intent.category.LAUNCHER -n com.alensw.PicFolder/com.alensw.PicFolder.GalleryActivity --user 0 --ez QuickPic.slide_show true --activity-clear-task --activity-clear-top --activity-no-history Timeout (Seconds):0 Use Root:Off Store Output In: Store Errors In: Store Result In: ]
I did send several emails to the developer of QP but so far they have been unresponsive.
I did send several emails to the developer of QP but so far they have been unresponsive.
--
> well the script is now giving load failed errors for no discernible reason. I can run it, it will work and then I can launch it a second time and it gives load failed.
>
> This is happening on the rooted 5.1.1 lollipop platform.
The folder you are using is not on a external sd card correct?
Did you try increasing the wait time. I found 1 second works every time on my droid 4., You should see the first iteration of QP load completely, then the slide show should load.
--
> One second Wait seems to have it behaving well now. Launching fine on back to backs, and after launching other Tasks navigating QuickPic to completely other directories.
Good to hear... The real test is the device reboot....
> One second Wait seems to have it behaving well now. Launching fine on back to backs, and after launching other Tasks navigating QuickPic to completely other directories.Good to hear... The real test is the device reboot....
--
> did a reboot and gave my phone a few mins to settle down, ran the script first thing, and got a Load failed! error.
>
> arrrrgh!
Maybe try setting the wait to 2 sec.
--
One more thing you could try is to replace the first intent with the tasker 'launch app' action for QP. Check all three options. Start new copy, exclude from recents, continue after error.
One more thing you could try is to replace the first intent with the tasker 'launch app' action for QP. Check all three options. Start new copy, exclude from recents, continue after error.
> Does this keep the two second wait or disgard it?
You would still need the wait. I would leave it as is unless it acts up again...
> 2 second Wait did the trick. It just fired fine following another reboot.
>
Hopefully it keeps working... :) Not the most elegant approach but I do not there is another way with QP unless they change the app, which seems doubtful as they won't even respond to emails...
> 2 second Wait did the trick. It just fired fine following another reboot.
>Hopefully it keeps working... :) Not the most elegant approach but I do not there is another way with QP unless they change the app, which seems doubtful as they won't even respond to emails...
--
Is it possible thru the coding in this Task to control if QuickPic runs thru the folder of picture names sequentially/alphabetically OR randomly, as is an option in Slideshow details.
--