[Q] - Tasker - Event Trigger when landing on a specfic homepage - Android Q&A, Help & Troubleshooting

Hi Everyone,
Let me start by thanking everyone in advance for any help. I've recently started playing around with tasker and there's one thing I'd like to do that I can't seem to figure out. What I'd like to do is set up a tasker event to trigger a task when I reach a specific homescreen (ie: Homescreen 1 of 7) originally the intent was to hide the dock when on my main home screen and call it back whenever I was on any other. I know we can use the %WIN variable but that only returns the window. For example, my launcher is Nova and %WIN returns Nova regardless of which of the homescreens i'm on. Any help will be greatly appreciated!

Related

[Q] Homescreen Widget - process dies, widget left in limbo, need recovery strategy

Guys
Hope you can offer me some sage advance.
I assure you it will be most appreciated.
I have a home screen widget backed by a Service and am seeking a guaranteed solution to recover from the death of the process hosting the widget.
The widget seems to die as the result of 'killing proc' or 'process has died'.
I might be missing a trick here and it might be blind to the blatantly obvious. If so please point me in the right direction.
I am currently using the ACTION_SCREEN_ON intent to check the state of the widget when the screen is turned back on. This works, but does not cater for the scenario where the process is killed while the screen is still on.
This leaves my widget in limbo, as the data it depends upon to function has been lost.
Q. Is the OS guaranteed to spawn a new process if the widget is killed?
Q. If so, is there a way to have the 'widget host' post an action when it spawns the
new process?
Q. If not, is there an action I can listen for that will result in a new process being spawned to handle the action?
As I understand it the android.appwidget.action.APPWIDGET_UPDATE action is only delivered on first initialisation of the widget so I can't use
this as a trigger to re-initialise the widget.
I had hoped to use the AlarmManager to implement a heartbeat in order to prompt the widget and provide it with the means to recover had it been killed.
This does not seem to work as the context is lost along with the process.
Any suggestions on a strategy for dealing with such a scenario.
Thanks in advance for your advice.

Tockle: start tasker apps from your G Watch :)

Hi there,
For all the Tasker fans out there; with the Tockle app you can start Tasker tasks straight from your G Watch.
Those who are familiar with Tasker know this makes the G Watch possibilities (almost) endless.
It's in beta right now but works great!
You have to join the Tockle community on Google+ to download:
https://plus.google.com/u/0/communities/116700521383056703371
Very very happy with this so I thought let's share
I currently only control my lights with my G Watch but many many projects to follow.
*edit: I made a typo in the topic title: apps should obviously be tasks. My bad :s
Tockle is great and shows real potential, the dev seems really helpful as well.
Trigger is another app that lets you control tasker tasks from Wear, (you need to create a task as if its an NFC trigger and skip the Tag writing stage), then you can choose the task from the companion app that installed on the watch, the good thing about trigger is that you get more than one task to scroll through on one screen.
https://play.google.com/store/apps/details?id=com.jwsoft.nfcactionlauncher
This can be done with the Wearable Widgets app that's been available for a while. Just create a widget for the task you want and just swipe through all the available ones on the watch. Simple.
being a big user of tasker i love this app esp since all my home lights and garage door are programmed through my tasker along with a million other tasks, quick question does anyone else experience lag time when saying "ok google...start action set"? When i launch it from the side bar its extremely fast and responsive but when trying to do full voice its very laggy in getting to that next screen.
as for the person that mentioned wearable widgets, id much rather this app over that only due to the battery drain that i've seen from that app (wearable widgets)

[Q] Tasker Help

Hello Everyone,
I know these topics pop up on occasion, but when searching I didn't find a good answer to my specific question. So here goes.
I am using my Nexus 7 (2012) in my car for an in dash install. I am looking to use Tasker to switch between running apps using gestures.
Here is what I'm thinking:
Swipe left and it switches to the "next" running app.
Swipe right and it switches to the "previous" running app.
Swipe down and it closes the app on screen.
Swipe up and it "minimizes" or opens to the home screen.
My logic is that when I'm in the car I don't want to have to try to deal with clicking small icons to open apps that I want to use and that gestures would be far safer and quicker.
The main apps that should be running are PowerAmp, TabletTalk, Sygic (GPS), and Torque.
Is it possible to create profiles that can accomplish these tasks?
Thank you all for your help.

How to disable all Keyboard Shortcuts?

Hello World,
I have a SG Note, with Lineage 7.1 and a bluetooth keyboard attached to it.
It is *highly* unnerving, when I am in the middle of some other task and the browser pops uo, because I touched the wrong key combination by accident.
Yet even so I found the button in "Settings" where it lists the pre-defined app shortcuts, I can not find the option to change/disable the same.
I'd be grateful for any help here.

How To Guide Oppo find n Default launcher change - no root or adb required

Hi guys,
I used to use Microsoft launcher as my default launcher in all phones but oppo find n does not let you do that unfortunately.
I didn't want to try adb methods (of uninstalling default launcher) that may lead to boot loop stucking if something went wrong.
So I thought to share with you finally a simple trick I came up with by using Tasker to automatically launch your favorite launcher based on UI change of default color os launcher of oppo.
First you need to install Tasker and give it all permissions required
GitHub - joaomgcd/Tasker-Permissions: Utility to easily grant Tasker permissions
Utility to easily grant Tasker permissions. Contribute to joaomgcd/Tasker-Permissions development by creating an account on GitHub.
github.com
Then you add a task and profile as follows:
Tasks > add > name it > add an action > search for if > add if condition: %WIN ~ Page 1 of 2** (**please note depends on how many pages you have on default launcher home screen, you should name the window label above (page 1 of 2 or page 1 of 3... Etc)) > from the add button > add another condition > %WIN ~ Page 2 of 2 (so the profile works on all pages of home screen) > add another action > search for wait > wait > 3 ms (milliseconds) > ok > add another action > app > launch app > Microsoft launcher (your launcher) > ok
Add profile > event > app changed > all apps (from bottom in Tasker) > system launcher
Choose the task you created with above actions in the profile
Done
Result:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just a quick question: did you test this on Android 13 or Android 11? Because I'm using Android 13, and sometimes it works, sometimes it doesn't.
nimumo said:
Just a quick question: did you test this on Android 13 or Android 11? Because I'm using Android 13, and sometimes it works, sometimes it doesn't.
Click to expand...
Click to collapse
I am using Android 13...
Have been using this method for couple of days with no issues ))
In that case, I'm doing something wrong, for sure, because, sometimes, the Microsoft Launcher doesn't appear. As an example, if I press the Task Switcher button, and then press the Home button, I still get the default Oppo Launcher. Also, sometimes, when I press the Task Switch button, it opens and closes immediately. Just to clarify, I don't use gestures for the Back, Home and Task Switcher; I'm using the onscreen buttons.
The only difference is that I already used ADB to change the default system launcher to Microsoft Launcher. Could this be the problem?
nimumo said:
In that case, I'm doing something wrong, for sure, because, sometimes, the Microsoft Launcher doesn't appear. As an example, if I press the Task Switcher button, and then press the Home button, I still get the default Oppo Launcher. Also, sometimes, when I press the Task Switch button, it opens and closes immediately. Just to clarify, I don't use gestures for the Back, Home and Task Switcher; I'm using the onscreen buttons.
The only difference is that I already used ADB to change the default system launcher to Microsoft Launcher. Could this be the problem?
Click to expand...
Click to collapse
Yes it could be.
I am using Tasker to automatically launch Microsoft launcher based on oppo default color os launcher itself, so if you uninstalled the default launcher Tasker won't recognize the UI change of default launcher and hence of course won't give you correct actions...
You may reinstall the default launcher and try Tasker method and please let me know if it works fine afterwards..
Just to clarify, I managed to get your solution up and running. Note that I didn't uninstall the default launcher; I only forced Microsoft Launcher to be the default launcher, using ADB commands.
The problem was something that we always forget: battery optimization. I had to change all the settings related to battery management (Battery menu and also App menu) and had to allow to run in background (Tasker App). Now I can have your script running 99% of the time.
The problem I noticed is if I press the Task Switcher button, for a short period I can see the running apps but then, it shows my home screen. If I press the Task Switch 3 times in a row, the Task Switch stays on but, as soon I press the Home button, it doesn't revert to Microsoft Launcher. To solve that, I need to disable and enable Tasker again.
Your solution, for me, it's not 100% fault proof, but it's much better that having to press the Microsoft Launcher button that I had to put on the Home screen, so, I thank you for sharing this other method for having a different launcher
If only we could put a "decent" ROM...
nimumo said:
Just to clarify, I managed to get your solution up and running. Note that I didn't uninstall the default launcher; I only forced Microsoft Launcher to be the default launcher, using ADB commands.
The problem was something that we always forget: battery optimization. I had to change all the settings related to battery management (Battery menu and also App menu) and had to allow to run in background (Tasker App). Now I can have your script running 99% of the time.
The problem I noticed is if I press the Task Switcher button, for a short period I can see the running apps but then, it shows my home screen. If I press the Task Switch 3 times in a row, the Task Switch stays on but, as soon I press the Home button, it doesn't revert to Microsoft Launcher. To solve that, I need to disable and enable Tasker again.
Your solution, for me, it's not 100% fault proof, but it's much better that having to press the Microsoft Launcher button that I had to put on the Home screen, so, I thank you for sharing this other method for having a different launcher
If only we could put a "decent" ROM...
Click to expand...
Click to collapse
Yeah you are right. Tasker method have some bugs and sometimes it forces to home screen of Microsoft launcher in somewhere in settings.
Then like you said turn off the profile and turn on again later...
Thank you for your reply and yeah "If only we could put a "decent" ROM... "... Can't agree more
nimumo said:
Just to clarify, I managed to get your solution up and running. Note that I didn't uninstall the default launcher; I only forced Microsoft Launcher to be the default launcher, using ADB commands.
The problem was something that we always forget: battery optimization. I had to change all the settings related to battery management (Battery menu and also App menu) and had to allow to run in background (Tasker App). Now I can have your script running 99% of the time.
The problem I noticed is if I press the Task Switcher button, for a short period I can see the running apps but then, it shows my home screen. If I press the Task Switch 3 times in a row, the Task Switch stays on but, as soon I press the Home button, it doesn't revert to Microsoft Launcher. To solve that, I need to disable and enable Tasker again.
Your solution, for me, it's not 100% fault proof, but it's much better that having to press the Microsoft Launcher button that I had to put on the Home screen, so, I thank you for sharing this other method for having a different launcher
If only we could put a "decent" ROM...
Click to expand...
Click to collapse
Good news I was able to fix that bug by adding a condition of the profile only works on home screen.
So it doesn't not work on recent tasks or settings that related to oppo system launcher app (lock screen wallpaper settings for example).
I will edit the original post adding the "if" condition...
Tasker will read the window label which is unique for each window in same app, so the actions will only be executed on home screen.
Please note the window label of oppo system launcher changes based on number of pages you have on system launcher home screen.
It's called "page 1 of x"
Where x is the number of pages you have in the launcher it self.
I was trying to reproduce your steps, but I'm getting stuck on the "if" condition. Whatever I do, I cannot put the "green" line (the one next to the conditions), it's always "red". I already tried to use Tasker Permission Manager to sort my Tasker's permissions (all green now) but looks like Tasker cannot "read" the WINDOW LABEL from the phone. I say this because if I try to press the PLAY button on the bottom of the task, it doesn't do anything. If I remove the "if" condition, it works as previously.
What am I missing?
nimumo said:
I was trying to reproduce your steps, but I'm getting stuck on the "if" condition. Whatever I do, I cannot put the "green" line (the one next to the conditions), it's always "red". I already tried to use Tasker Permission Manager to sort my Tasker's permissions (all green now) but looks like Tasker cannot "read" the WINDOW LABEL from the phone. I say this because if I try to press the PLAY button on the bottom of the task, it doesn't do anything. If I remove the "if" condition, it works as previously.
What am I missing?
Click to expand...
Click to collapse
The green line means the if condition is true and this only happens when you go to home screen which gives the label name page1 of...
It won't go green unless Tasker reads home screen label.
I took the screen shot after pressing play then going to home screen then going back to Tasker using gestures. It was not on purpose
Regardless the line going to green or stays red, if it works then it works. Even though you may not be able to make the line goes to green...
After a lot of testing, I finally found the reason why this method was not working for me:
Tasker App Check Method - Accessibility
I found that I had this option set to "App Usage Stats" (because I never changed it) and it must be set to "Accessibility"
After changing to this option (Tasker) and after activating Tasker in Accessibility menu (phone), it started to work.
But I found that this method doesn't work all the time. As example, if you click on the "Task Switcher" button, choose an opened app and them go back (via the "Back" button), the Microsoft Launcher doesn't open.
But, instead of complaining, I want to thank you for this method because it's works, and it's easy to set up.
nimumo said:
After a lot of testing, I finally found the reason why this method was not working for me:
Tasker App Check Method - Accessibility
I found that I had this option set to "App Usage Stats" (because I never changed it) and it must be set to "Accessibility"
After changing to this option (Tasker) and after activating Tasker in Accessibility menu (phone), it started to work.
But I found that this method doesn't work all the time. As example, if you click on the "Task Switcher" button, choose an opened app and them go back (via the "Back" button), the Microsoft Launcher doesn't open.
But, instead of complaining, I want to thank you for this method because it's works, and it's easy to set up.
Click to expand...
Click to collapse
Thank you my friend for sharing your experience
I really appreciate any ono who shares his feedback
Wish you all the best
nimumo said:
I only forced Microsoft Launcher to be the default launcher, using ADB commands.
Click to expand...
Click to collapse
Could you share the exact command? When i tried it awhile back, i wasnt sure which microsoft package to use.
Hadron001 said:
Could you share the exact command? When i tried it awhile back, i wasnt sure which microsoft package to use.
Click to expand...
Click to collapse
The code
cmd package set-home-activity "com.microsoft.launcher/com.microsoft.launcher.Launcher"
And the task under adb wifi
But my advise is not to use it as when you go home screen and want to open recent tasks it messes up and you won't see any open recent applications, just lines..
(try it you will know what I mean)
Also it goes to oppo launcher sometimes and you have to go to home screen several times to get back to Microsoft launcher
Other thing Microsoft launcher icons stops working sometimes with me when I used that method
So I went back to my method of this original thread
Much stable and just a mask of oppo launcher on the top so everything goes fine (just like pressing Microsoft launcher icon to start it normally every time you go to home screen
Thanks a lot for the advice. I did try:
Code:
adb shell
pm disable com.android.launcher
pm enable com.microsoft.launcher
Which worked, except the 'swipe from bottom' gesture completely stops working. Can't swipe to exit foreground app, nor can you swipe and hold to see all recent apps.
I'm going to look around to see why that's the case, but maybe I'll just have to use your method eventually.
Hadron001 said:
Thanks a lot for the advice. I did try:
Code:
adb shell
pm disable com.android.launcher
pm enable com.microsoft.launcher
Which worked, except the 'swipe from bottom' gesture completely stops working. Can't swipe to exit foreground app, nor can you swipe and hold to see all recent apps.
I'm going to look around to see why that's the case, but maybe I'll just have to use your method eventually.
Click to expand...
Click to collapse
Thank you for sharing your experience.
I guess recent tasks and home buttons are forced to be used by oppo launcher some how since even by not disabling the oppo launcher completely still some odd behavior happens by recent tasks and home button swiping.
Wish you the best of luck.
hesham1216 said:
Hi guys,
I used to use Microsoft launcher as my default launcher in all phones but oppo find n does not let you do that unfortunately.
I didn't want to try adb methods (of uninstalling default launcher) that may lead to boot loop stucking if something went wrong.
So I thought to share with you finally a simple trick I came up with by using Tasker to automatically launch your favorite launcher based on UI change of default color os launcher of oppo.
First you need to install Tasker and give it all permissions required
GitHub - joaomgcd/Tasker-Permissions: Utility to easily grant Tasker permissions
Utility to easily grant Tasker permissions. Contribute to joaomgcd/Tasker-Permissions development by creating an account on GitHub.
github.com
Then you add a task and profile as follows:
Tasks > add > name it > add an action > search for if > add if condition: %WIN ~ Page 1 of 2** (**please note depends on how many pages you have on default launcher home screen, you should name the window label above (page 1 of 2 or page 1 of 3... Etc)) > from the add button > add another condition > %WIN ~ Page 2 of 2 (so the profile works on all pages of home screen) > add another action > search for wait > wait > 3 ms (milliseconds) > ok > add another action > app > launch app > Microsoft launcher (your launcher) > ok
Add profile > event > app changed > all apps (from bottom in Tasker) > system launcher
Choose the task you created with above actions in the profile
Done
Result:
View attachment 5780089
Click to expand...
Click to collapse
Hello
I try uses in my Oppo Find X6 Pro 0 china
I dont now why not can make correctly , please helped
Maybe have correct import in files for tasker ?
I use Nova launcher, but if disable system launcher ( in adb ) not working recent tasks - button last app
Hadron001 said:
Thanks a lot for the advice. I did try:
Code:
adb shell
pm disable com.android.launcher
pm enable com.microsoft.launcher
Which worked, except the 'swipe from bottom' gesture completely stops working. Can't swipe to exit foreground app, nor can you swipe and hold to see all recent apps.
I'm going to look around to see why that's the case, but maybe I'll just have to use your method eventually.
Click to expand...
Click to collapse
Hi, thanks for your efforts. Have you by any chance been able to achieve further progress on setting up the Microsoft Launcher as the default launcher?
Thanks a lot !
Best regards, Lars
hesham1216 said:
Hi guys,
I used to use Microsoft launcher as my default launcher in all phones but oppo find n does not let you do that unfortunately.
I didn't want to try adb methods (of uninstalling default launcher) that may lead to boot loop stucking if something went wrong.
So I thought to share with you finally a simple trick I came up with by using Tasker to automatically launch your favorite launcher based on UI change of default color os launcher of oppo.
First you need to install Tasker and give it all permissions required
GitHub - joaomgcd/Tasker-Permissions: Utility to easily grant Tasker permissions
Utility to easily grant Tasker permissions. Contribute to joaomgcd/Tasker-Permissions development by creating an account on GitHub.
github.com
Then you add a task and profile as follows:
Tasks > add > name it > add an action > search for if > add if condition: %WIN ~ Page 1 of 2** (**please note depends on how many pages you have on default launcher home screen, you should name the window label above (page 1 of 2 or page 1 of 3... Etc)) > from the add button > add another condition > %WIN ~ Page 2 of 2 (so the profile works on all pages of home screen) > add another action > search for wait > wait > 3 ms (milliseconds) > ok > add another action > app > launch app > Microsoft launcher (your launcher) > ok
Add profile > event > app changed > all apps (from bottom in Tasker) > system launcher
Choose the task you created with above actions in the profile
Done
Result:
View attachment 5780089
Click to expand...
Click to collapse
I have done everything in Tasker but when i use gestures to swipe up from the bottom it always goes back to the system launcher ?

Categories

Resources