Help - Dynamic Launcher In Tasker/Autotools for Galaxy Fold

852 views
Skip to first unread message

Adam

unread,
Jun 23, 2020, 10:56:59 PM6/23/20
to Tasker
Hi there (first post sorry)

I found a thread a while back about being able to change launchers dynamically using auto tools (tasker). Another user (messaged but as yet no reply) was using screen resolution as the trigger to switch between two launchers for the galaxy fold, I'm a fold user and want to do the same but the task and profile don't seem to be working and hoping someone can tell me where I'm going wrong? I'm wanting to switch between Nova Launcher and CPL (Customised Pixel Launcher), when the profile is active and Autotools is set to the Home App it always goes to CPL despite the fact it should go to Nova on the main/inside screen.

I've posted this in the Tasker Subreddit as well, but not many comments and really stuck, hoping given the niche nature of the galaxy fold I'll successfully find help here.😫

I've put the original post below and pasted both my profile and task as I replicated from the notes. Hoping someone can help, I've tried tinkering with everything and any advice or help would be much appreciated 😊. Thank you in advance for input and help!

Original post: https://amp.reddit.com/r/GalaxyFold/comments/d6lw10/any_launchers_at_all_compatible_with_the_galaxy/

Original comment by ScottishDan:

"Profile:

1. Event: Variables > Variable Set Variable =
%WIN
2. State: Variables > Variable Value
Conditions: %WIN~ Home screen, Page 1 of
1 OR %WIN~ Home

Task (Change Launcher):

1. Test Display > Available Resolution Store
Result In: %Resolution
2. AutoTools Launcher Configuration:
Launcher: com.sec.android.app.launcher
If:%Resolution~ 1536X1940 AND %WIN
Home screen, Page 1 of 1 Default page
3. AutoTools Launcher Configuration:
Launcher: com.teslacoilsw.launcher If:
%Resolution ~840x1852 AND %WIN ~ Home
4. (optional) Go Home

I originally had (4) set which makes this an
automatic process (when resolution changes,
ie you open or close the phone when on the
home screen, then it applied). I now have
that disabled though such that the launcher only
changes when I press home button or swipe home
gesture. Hope the above makes sense to you."


MY PROFILE:

Profile: Launcher Changer (48)
Restore: no
Event: Variable Set [ Variable:%WIN Value:* User Variables Only:Off ]
State: Variable Value [ %WIN ~ Home, Page 1 of 1 | %WIN ~ Home ]
Enter: Change Launcher (47)
A1: Test Display [ Type:Available Resolution Data: Store Result In:%Resolution ]
A2: AutoTools Launcher [ Configuration:Launcher: com.teslacoilsw.launcher Timeout (Seconds):60 Continue Task After Error:On ] If [ %Resolution ~ 1536x1940 & %WIN ~ Home screen, Page 1 of 1 Default page ]
A3: AutoTools Launcher [ Configuration:Launcher: ru.whatau.cpl Timeout (Seconds):60 Continue Task After Error:On ] If [ %Resolution ~ 840x1852 & %WIN ~ Home ]
A4: Go Home [ Page:0 ]



MY TASK:

Change Launcher (47)
A1: Test Display [ Type:Available Resolution Data: Store Result In:%Resolution ]
A2: AutoTools Launcher [ Configuration:Launcher: com.teslacoilsw.launcher Timeout (Seconds):60 Continue Task After Error:On ] If [ %Resolution ~ 1536x1940 & %WIN ~ Home screen, Page 1 of 1 Default page ]
A3: AutoTools Launcher [ Configuration:Launcher: ru.whatau.cpl Timeout (Seconds):60 Continue Task After Error:On ] If [ %Resolution ~ 840x1852 & %WIN ~ Home ]
A4: Go Home [ Page:0 ]

João Dias

unread,
Jun 24, 2020, 9:38:53 AM6/24/20
to tas...@googlegroups.com
Hi! thanks for posting! Can you please let me know what is not working for you exactly?

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

Adam

unread,
Jun 24, 2020, 10:12:56 AM6/24/20
to Tasker
Hi there

Thank you for getting back to me so quickly 😊. Basically, I'm trying to make it so that on the front small screen of the fold is Customised Pixel Launcher and when i open the galaxy fold to the main screen it automatically switches to Nova Launcher. The problem I'm having is that the profile and task weren't made from the ground up by me but found in a thread by another galaxy fold owner. Whilst I have a rudimentary understanding of tasker I'm far from an expert and don't understand all the above task and profile entail.

When I activate the profile and set auto tools as the home app in settings it always goes to CPL regardless of which screen its on. I even tried placing a shortcut to nova on the CPL home screen but when I tap it it changes immediately back to CPL even if its on the inside screen.

just need a hand figuring out why its not working and to work out the kinks. Thank you again 😊.

Kind regards

Adam

João Dias

unread,
Jun 24, 2020, 10:58:03 AM6/24/20
to tas...@googlegroups.com
Ok, I don't have a Galaxy Fold myself but I'll try to help :)

Start by checking if the task is triggering at all by adding a Flash action as the first action in the task with the text "Works" for example.
Then after the action that checks the resolution check what the %Resolution variable contains to see if it matches the values you were looking for :)

Adam

unread,
Jun 24, 2020, 11:27:08 AM6/24/20
to Tasker
Okie dozier, thank you all the same 😊

So I tested it with a flash and that works fine, so looks like the task is triggering.

Under the resolution check there is an "autotools launcher" and I've set it with the package name for accuracy. And in that I've added the "if" variables of "%resolution ~ 1536x1940 AND %WIN ~ Home screen, Page 1 of 1 Default page" as laid out by the original reddit poster. Is this correct? Thank you again!

João Dias

unread,
Jun 24, 2020, 11:41:51 AM6/24/20
to tas...@googlegroups.com
What I was saying is that you should add another flash action after the first action where the resolution is checked to show which resolution it's detecting.
Also, I think you can skip checking the Home screen name since the resolution will already be different :)


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/dc808eef-bb82-484d-a872-69e8e7a340f5o%40googlegroups.com.

Adam

unread,
Jun 24, 2020, 1:29:21 PM6/24/20
to Tasker
Hi there

So tinkered a little, placed a flash under each autotools launcher task, they both seem to be "firing" so least we know that.

I also removed the "if" %WIN ~ home page, page 1 of 1 Default page from the first autotool task and the "if" %WIN ~ home from the second one (presumably these are the launcher names and a second tier of detection for tasker to use as criteria??)

The profile uses an event variable set of %WIN as well as a state variable value of with two conditions of %WIN ~ Home screen, Page 1 or 1 OR %WIN ~ Home. So surely if I remove the "if" with %WIN in each autotool launcher task the profile loses the ability of which autotool launcher to trigger?

Shall I send you the links so you can download and see what I mean? Obviously I want to learn but I feel I'm lacking the vernacular to both explain and fully understand what I need to be doing 😕 sorry, and thank you again.

Adam

unread,
Jun 25, 2020, 8:13:35 AM6/25/20
to Tasker
Ello

So with the help of a redditer I've basically managed to make it work for the most part, problem I'm having now is that autotools launcher is slow to change launchers and al.ost always needs a 'kick' like opening recent apps to force it to refresh and change launchers. Any way to fix this? 😊

João Dias

unread,
Jun 25, 2020, 8:18:16 AM6/25/20
to tas...@googlegroups.com
Hhmm, not sure sorry. Can you clarify what you mean by slow? :) Also, what changes did you have to make to make it work? Just curious...

Adam

unread,
Jun 25, 2020, 9:09:50 AM6/25/20
to Tasker
So in theory, when the phone unlocks it should do a test for the screens resolution, prompting a change to either Nova (variable - Home) on the main/inside display, or CPL (variable - Home screen 1 of 2) on the cover/front display, and when the phone is unfolded/folded should repeat the process and change the the appropriate launcher.

Problem om having is that I need to either swipe the home gesture multiple times or refresh the Google now news feed to force the change of launchers. Always to resolve this so that it becomes automatic? Thank you for assisting again and your patience with my lack of knowledge.

How it began to sort of work - credit goes to a redditer called "bloopy901" figured out that the variables for the launchers in each autotool launcher task needed to be reversed, so the "if > %WIN ~ Home screen 1 of 2" needed to be a variable in the nova autotool task rather than its own for CPL. I'm not sure why it worked, but it kinda got it working 😅.

João Dias

unread,
Jun 25, 2020, 9:48:12 AM6/25/20
to tas...@googlegroups.com
Hmm, how about it you use the Go Home action after setting the launcher? :)


Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias

--
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.

Adam

unread,
Jun 25, 2020, 10:31:47 AM6/25/20
to Tasker
I had originally added that, but it seems to put it in a infinite loop making it unusable, I then added "stop" on the end to try and fix the looping but that did nothing. So I then tried and autoinput of a global action "home" to see if that'd make a difference, working once before ending up in the same infinite loop. Not sure why?

Truing to use "end" doesn't let me save the task as it says its malformed 😕.

João Dias

unread,
Jun 30, 2020, 8:44:22 AM6/30/20
to tas...@googlegroups.com
Try making the cooldown time of the project be something like 5 seconds so it doesn't loop :) Could that help?
Reply all
Reply to author
Forward
0 new messages