[GUIDE][Difficulty: Beginner] Enable Speakerphone when Phone is Placed on Table - Tasker Tips & Tricks

If you're busy with something and you get a phone call, it might frustrate you having to put your phone down and manually enabling speakerphone in order to actually talk with the person on the other end. However with Tasker, you can easily enable Speakerphone when you're in a call by placing your phone upright on a flat surface. It works by reading your accelerometer to grab the current orientation of the device. Let's set it up.
Instructions
Create a new Profile and name it "Speakerphone."
Create a new State context, go to Phone --> Call. Set it to "Any."
Create a new task, but there's no need to name it anything because it will only need a single action.
Within the Entry task, go to Audio --> Speakerphone and set it to On.
Exit the task editor, and then long-press on the Call Any,* context in order to add another Context.
Add another State context, and go to Sensor --> Orientation. Set "Is" to Face Up.
Exit out, and now long-press on the Entry task. Tasker will ask you to add an Exit Task. Create one.
Once inside the task editor again, go to Audio --> Speakerphone again. This time set Speakerphone to Off.
{
"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"
}
That's it! Now, this profile will trigger when your phone is both a) within a phone call and b) face-up on a flat surface (the orientation is detected as face-up). On satisfying these conditions, Tasker will enable speakerphone, and when it fails to meet the condition (ie. when you exit the call or pick the phone up) speakerphone will turn off.

maybe little offtopic....but the same feature is available on my oneplus one, slimsaber-rom. in the phone-app under SETTINGS >> CALL u can find the option AUTOMATIC PROXIMITY SENSOR. set it ON and u have the same feature

Not working.. Any setting do I need to change for the accelerometer to recognize? I have done exactly like above..

I click + to add profile and it asks me for a "First Context"
Edit:
1. Create a new Profile, select State context and name it "Speakerphone."
---------- Post added at 11:15 AM ---------- Previous post was at 10:54 AM ----------
Trying to create the above and starting realise why I used Locale for so longer.
I must add a task and give it name?

how will this react to having headphones plugged in? at work, my phone is usually in a position that would trigger this but i plug in headphones to talk and listen. i wouldnt want speakerphone to override the headphones at work. at home though this would be fine since i dont use the headphones there.

tykob said:
how will this react to having headphones plugged in? at work, my phone is usually in a position that would trigger this but i plug in headphones to talk and listen. i wouldnt want speakerphone to override the headphones at work. at home though this would be fine since i dont use the headphones there.
Click to expand...
Click to collapse
Just Add Another Context for when Headphones are not plugged in, you can play with your own settings. Even by using Ifs but thats another thing you dont need to know now.

fenchai said:
Just Add Another Context for when Headphones are not plugged in, you can play with your own settings. Even by using Ifs but thats another thing you dont need to know now.
Click to expand...
Click to collapse
was just coming to make the same comment. added a third state context of headset plugged in > any > invert. seemed to do the trick. thanks!

I did not know I needed this profile until I read it! I have found myself in this scenario multiple times and I never thought to use Tasker to make my life easier! And it is so simple!

I guess it really depends on where the main speaker is located. If it is on the back, then you would want to have the orientation set to the back, otherwise, the front.

It worked on my LG G4, thanks!

dharish said:
Not working.. Any setting do I need to change for the accelerometer to recognize? I have done exactly like above..
Click to expand...
Click to collapse
Calibrate your accelerometer in Tasker's preferences. Click the 3 dot menu in the top right, go to preferences, go to the Monitor tab, then scroll all the way down to the Calibrate button under where it says "Accelerometer." Do that then try it again.
lywyn said:
I click + to add profile and it asks me for a "First Context"
Edit:
1. Create a new Profile, select State context and name it "Speakerphone."
---------- Post added at 11:15 AM ---------- Previous post was at 10:54 AM ----------
Trying to create the above and starting realise why I used Locale for so longer.
I must add a task and give it name?
Click to expand...
Click to collapse
The general idea for any tasker creation is like this: 1) create a context, 2) create a task. The context is what must occur on your phone in order for Tasker to be triggered, and the task is the action that Tasker then performs. In this case, the context is when Tasker detects that the orientation of your phone is face-up AND the fact that you are in the middle of a phone call. Then, Tasker fires the associated task that enables speakerphone. Naming a context or task is entirely optional.

MishaalRahman said:
If you're busy with something and you get a phone call, it might frustrate you having to put your phone down and manually enabling speakerphone in order to actually talk with the person on the other end. However with Tasker, you can easily enable Speakerphone when you're in a call by placing your phone upright on a flat surface. It works by reading your accelerometer to grab the current orientation of the device. Let's set it up.
Instructions
Create a new Profile and name it "Speakerphone."
Create a new State context, go to Phone --> Call. Set it to "Any."
Create a new task, but there's no need to name it anything because it will only need a single action.
Within the Entry task, go to Audio --> Speakerphone and set it to On.
Exit the task editor, and then long-press on the Call Any,* context in order to add another Context.
Add another State context, and go to Sensor --> Orientation. Set "Is" to Face Up.
Exit out, and now long-press on the Entry task. Tasker will ask you to add an Exit Task. Create one.
Once inside the task editor again, go to Audio --> Speakerphone again. This time set Speakerphone to Off.
That's it! Now, this profile will trigger when your phone is both a) within a phone call and b) face-up on a flat surface (the orientation is detected as face-up). On satisfying these conditions, Tasker will enable speakerphone, and when it fails to meet the condition (ie. when you exit the call or pick the phone up) speakerphone will turn off.
Click to expand...
Click to collapse
Did it. Never used speakerphone so see if it even works.
Live and learn obscure Taskerisms-2. This profile is stuck as its own entry, not under the "home" listing. Shown as enabled so we shall see.

On the one plus one there was an option, if you took a call, put it to up to your ear, then decided you wanted others to hear the call, you could pull it away from your face, and after 2-3 seconds the phone automatically switched to speakerphone. Is anyone able to replicate that within tasker. It was a cool option.

MishaalRahman said:
If you're busy with something and you get a phone call, it might frustrate you having to put your phone down and manually enabling speakerphone in order to actually talk with the person on the other end.
Click to expand...
Click to collapse
Love this Tasker stuff! THANKS for this feature, I DO hate putting that speaker phone on, and I'm always doing something when I get a call..
I've been meaning to update my article for about two years now.. since I last checked... College program is almost done!
If you wouldn't mind I could add this to the list in the future! Feel free to check out my profiles ready for download as well
Last one I remember working on was a failed login/Phone theft preventer which is still sitting half done on my phone.
For this to work, someone would have to attempt to login to your phone 3 times, Tasker would then Lock up the phone, force data and GPS on,
and take a few pictures using the front facing camera. Then send them through email, or text to give you a better idea of who has your phone.
D'OH!, this is a feature in this form now lol..
Cheers!

SkyboneNoya said:
Love this Tasker stuff! THANKS for this feature, I DO hate putting that speaker phone on, and I'm always doing something when I get a call..
I've been meaning to update my article for about two years now.. since I last checked... College program is almost done!
If you wouldn't mind I could add this to the list in the future! Feel free to check out my profiles ready for download as well
Last one I remember working on was a failed login/Phone theft preventer which is still sitting half done on my phone.
For this to work, someone would have to attempt to login to your phone 3 times, Tasker would then Lock up the phone, force data and GPS on,
and take a few pictures using the front facing camera. Then send them through email, or text to give you a better idea of who has your phone.
D'OH!, this is a feature in this form now lol..
Cheers!
Click to expand...
Click to collapse
Yup, you can expand what you want to do based on failed unlocks to whatever you want. Do you have a link to your other profiles? Could you share them on this forum? Thanks!

MishaalRahman said:
Yup, you can expand what you want to do based on failed unlocks to whatever you want. Do you have a link to your other profiles? Could you share them on this forum? Thanks!
Click to expand...
Click to collapse
Yeah just in the Sig, http://forum.xda-developers.com/showthread.php?t=2552570

MishaalRahman said:
Calibrate your accelerometer in Tasker's preferences. Click the 3 dot menu in the top right, go to preferences, go to the Monitor tab, then scroll all the way down to the Calibrate button under where it says "Accelerometer." Do that then try it again.
Click to expand...
Click to collapse
I can't make it work! When I click at "Calibrate" button nothing happens!!!

this is simply awesome!
Thanks for this =)

I tried this on my s6 edge but it didn't work. Any reason why?
Sent from my SM-G925F using Tapatalk

OK so now after calibrating it works. But unfortunately it doesn't seem to turn off when I pick up the phone. Any reason why?
Sent from my SM-G925F using Tapatalk

Related

Tasker

Has anyone started building Tasker Tasks for use from their Pebbles yet? Integrating anything? Displaying anything on your Pebble from Tasker?
pbrauer said:
Has anyone started building Tasker Tasks for use from their Pebbles yet? Integrating anything? Displaying anything on your Pebble from Tasker?
Click to expand...
Click to collapse
I've done some small things..
Set up to click watch to take picture on phone... I'm a teacher so it is good if a student lifts my phone when I put it down.
And set up to push watch to start recording on my phone.
Sent from my SCH-I605 using xda app-developers app
yes
With the new long press and long menu the app is fantastic!
Tasks I use:
Call wife
Silent mode
Volume up
Google voice search
Trigger sound (fart) via remote.
Record sound
Take picture
shafter09 said:
With the new long press and long menu the app is fantastic!
Tasks I use:
Call wife
Silent mode
Volume up
Google voice search
Trigger sound (fart) via remote.
Record sound
Take picture
Click to expand...
Click to collapse
Are you using glance to access your tasks?
I managed to tie in the Ringer up/vibrate into one toggle task.... Saves space.
Sent from my SCH-I605 using xda app-developers app
Glance and Pebble Tasker work great with Tasker
Task functionality in Glance and Pebble Tasker work great with Tasker. Glance has three tasks and Pebble Tasker has three buttons plus a menu of up to 20 tasks.
Using Glance and dynamically changing based on locations. Glance Labels are variables, Home, Work, Class are Tasker profiles controlled by variables. Glance Label variables and %key actions are variable based on if %work=1, else if %class=1, else.
Default:
WiFi Hotspot Toggle
Call Wife
Turn on Silent (need to setup a toggle)
Work:
Turn off Work Profile (%work=0)
Open Canvas Watchface with Starbucks mobile payment barcode (haven't tested but heard it works, need to find a programmatic way to return to Glance too)
Open LevelUp on phone (need to setup like Starbucks)
Class
Turn on WiFi
Call Wife
Open Starbucks Watchface (same as above)
Tried but turned off:
If connected to SSID attwifi (Starbucks standard SSID) with a very strong signal, open Starbucks mobile payment barcode watch face via Canvas. Exit Task: return to standard Canvas watch face.
I'll use this again if I can find a programmatic way to return to Glance instead of a Canvas watch face.
Glance Actions Task Screenshot:
{
"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"
}
I made a few toggle lights and fans for my home with remotestick (controls relays with tellstick) + Pebble Tasker and toggle scripts in tasker so i can turn on/off most things at home without finding the remote / phone. I also got temperature sensors hooked up so I can check inside, outside, fridge, server room temperature from the watch. Works really well even when not at home.
Sent from my C6603 using Tapatalk 4
Bender303 said:
I made a few toggle lights and fans for my home with remotestick (controls relays with tellstick) + Pebble Tasker and toggle scripts in tasker so i can turn on/off most things at home without finding the remote / phone. I also got temperature sensors hooked up so I can check inside, outside, fridge, server room temperature from the watch. Works really well even when not at home.
Sent from my C6603 using Tapatalk 4
Click to expand...
Click to collapse
Any chance of a tutorial on the remotestick / Tasker integration?
EDIT:
Ok, had a wack at it and can now control on / off bedroom lights and open / close garage door from Pebble
Only wish there where more buttons....
Sent from my GT-I9505G using Tapatalk 2
reidar.ostrem said:
Any chance of a tutorial on the remotestick / Tasker integration?
EDIT:
Ok, had a wack at it and can now control on / off bedroom lights and open / close garage door from Pebble
Only wish there where more buttons....
Sent from my GT-I9505G using Tapatalk 2
Click to expand...
Click to collapse
Good did you do toggle on/off scripts or use separate on/off?
Toggle was not that hard to set up,
Create a task and add task -> If
%RSD_<yournumberfromremotestick> matches 2
Add a plugin task to turn ON same device.
Add another task -> Else if
%RSD_<yournumberfromremotestick> matches 1
Add a plugin task to turn OFF same device.
The time you can turn on off the same device depends on the poll interval set in remotestick, so if it's set to 5min you have to wait 5min to turn off a device you just turned on with the toggle task.
At least it saves a slot for more devices you can also use long press for alternative task and the 20 tasks menu.
Sent from my C6603 using Tapatalk 4
pbrauer said:
Has anyone started building Tasker Tasks for use from their Pebbles yet? Integrating anything? Displaying anything on your Pebble from Tasker?
Click to expand...
Click to collapse
Sent from my Nexus 7 using Tapatalk 4
---------- Post added at 09:14 AM ---------- Previous post was at 09:10 AM ----------
Please excuse my incompetence using the reply function wherein
I succeeded only in re posting the post I wished to reply to
Sent from my Nexus 7 using Tapatalk 4
Bender303 said:
Good did you do toggle on/off scripts or use separate on/off?
Toggle was not that hard to set up,
Create a task and add task -> If
%RSD_<yournumberfromremotestick> matches 2
Add a plugin task to turn ON same device.
Add another task -> Else if
%RSD_<yournumberfromremotestick> matches 1
Add a plugin task to turn OFF same device.
The time you can turn on off the same device depends on the poll interval set in remotestick, so if it's set to 5min you have to wait 5min to turn off a device you just turned on with the toggle task.
At least it saves a slot for more devices you can also use long press for alternative task and the 20 tasks menu.
Sent from my C6603 using Tapatalk 4
Click to expand...
Click to collapse
Hi,
I'm using Glance for my Pebble, and unfortunately it only supports 3 tasks.
I have no earlier experience with Tasker, so I just did 3 separate tasks and mapped them to the buttons
Currently having on and off the bedroom lights (TOP and BOTTOM) and garage open / close (CENTER). The garage only uses one as it's a potential free relay.
Maybe I should try Pebble Tasker as i see they have 20 tasks in list ... but don't know how that will work in conjuction with Glance (?)..
You can also set up PebbleTasker to make a menu based system. Each of its three main tasks can rewrite the tasks to new ones on the fly.
My first set of three are "car", "garage", and "music". If I press car, I get a new set of "lock", "unlock", and "start", which do as they suggest. The other tasks operate in a like manner. You can go as deep as you want.
I actually made a mock up of a text input setup with it, based on an example app.
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
jon_ks said:
Using Glance and dynamically changing based on locations. Glance Labels are variables, Home, Work, Class are Tasker profiles controlled by variables. Glance Label variables and %key actions are variable based on if %work=1, else if %class=1, else.
Default:
WiFi Hotspot Toggle
Call Wife
Turn on Silent (need to setup a toggle)
Work:
Turn off Work Profile (%work=0)
Open Canvas Watchface with Starbucks mobile payment barcode (haven't tested but heard it works, need to find a programmatic way to return to Glance too)
Open LevelUp on phone (need to setup like Starbucks)
Class
Turn on WiFi
Call Wife
Open Starbucks Watchface (same as above)
Tried but turned off:
If connected to SSID attwifi (Starbucks standard SSID) with a very strong signal, open Starbucks mobile payment barcode watch face via Canvas. Exit Task: return to standard Canvas watch face.
I'll use this again if I can find a programmatic way to return to Glance instead of a Canvas watch face.
Glance Actions Task Screenshot:
Click to expand...
Click to collapse
Still need to figure out how to do a ringer on/off toggle?
Pretty much everything I do on the Pebble is via Tasker, so the list is fairly long. Some highlights:
Home automation controls
Dynamic Music Boss switching that automatically controls phone media players outside, but PC media player (including metadata support) at home
Custom bus schedule system
Custom notification back end for greater control over when notifications are sent
Integration with custom todo list
Dynamically changing Canvas watchfaces controlled by and with info from Tasker
NFC chip on strap for unlocking phone
etc
I use tasker and secure settings to remove pin lock when phone is connected to the watch and relock if not. As I always have my phone and watch on me, it makes life easier, but I know the information on my phone is secure if I leave it somewhere or loose it
Sent from my C6903 using xda premium
I did the same thing. If my oebble is conn3cted to my phone, my lockscreen is disabled. If my watch disconnects, then my phone asks for a PIN.
I used Pebble Tasker to make my top right button launch Google Voice Search, but it wasn't waking up my phone before launching the app. I was able to figure out how to map my bottom button to wake up the screen. As it stands now, I press the bottom button to wake up the phone, and then top button to open voice search.
I haven't yet been able to figure out how to combine those into one routine. Ideally, with one press of the button, I would like my watch to 1. Wake up the phone, and 2. Launch Google Voice.
I'm not literate enough in Tasker to figure it out yet, but I'm pretty sure it can be done.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Dugan1017 said:
I did the same thing. If my oebble is conn3cted to my phone, my lockscreen is disabled. If my watch disconnects, then my phone asks for a PIN.
I used Pebble Tasker to make my top right button launch Google Voice Search, but it wasn't waking up my phone before launching the app. I was able to figure out how to map my bottom button to wake up the screen. As it stands now, I press the bottom button to wake up the phone, and then top button to open voice search.
I haven't yet been able to figure out how to combine those into one routine. Ideally, with one press of the button, I would like my watch to 1. Wake up the phone, and 2. Launch Google Voice.
I'm not literate enough in Tasker to figure it out yet, but I'm pretty sure it can be done.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Just use the 'wait' command to be sure there's enough time for the screen to fully wake, then call out for your 2nd task inside the first one.
-- Note II, TapaTalk II--
Note 3 -- Tapatalk
shafter09 said:
Trigger sound (fart) via remote.
Click to expand...
Click to collapse
Lmao! :thumbup:
I use it to launch Google Search and then with "Okay Google" voice command, can get a lot done without touching the phone.
Also, the possibility of using Pebble Tasker in conjunction with Home Automation is incredibly appealing. Quick off topic question, what are u guys using for that? (I'm looking into Vera Casa Verde)
Sent from my Nexus 7 using Tapatalk
what about speaking the weather for life of me i cant get the httpget to work or varibles for that matter does anyone have a task i could use? or just one that would push the weather to my pebble

[GUIDE] Setup Tasker Buttons in Glance

So I recently got a Pebble and discovered there were several ways that one could start Tasker actions using the Pebble. I have become a big fan of Glance and decided since it already supports Tasker I would use it instead of relying on another app on my watch. The instructions on how to set things up on the Glance website aren't the easiest to understand so hopefully this guide will help anyone out who is having difficulty.
-Difficulty: Easy
-Requirements: Pebble with Glance, Tasker on your phone, and at least a basic understanding of Tasker
The first thing we're gonna do is get our buttons put into tasker, these are the buttons on the Pebble that you will be using to launch actions from within Glance. I named my profile Glance Buttons but you can name yours whatever you'd like.
-From within Tasker create a new profile. Select Event/System/Intent Received. In the Action field type:
Code:
uk.co.finebyte.pebbleglance.TASKERINIT
{
"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"
}
This profile is done, now let's make our task for this profile. I named mine Glance Tasker Buttons but again name your task whatever you'd like.
-Click the + to add an action to the task. Select Misc/Send Intent. In the Action field type:
Code:
uk.co.finebyte.pebbleglance.TASKERSEND
Don't exit yet.
For the next part you can substitute everything after msg: with whatever you would like your button labels to be, I will use mine as an example. There are 3 buttons and the first label will be for the top button, second middle and third bottom. Each button will be separated by :
-In the Extra field type:
Code:
msg:ACV On:ACV Off:Voice Recorder
The hardest part is over, now let's make the buttons actually perform a task.
Create another profile, I call mine Glance Assignments.
-Select Event/System/Intent Received. In the Action field type:
Code:
uk.co.finebyte.pebbleglance.TASKERKEY
Now for the task. Use if for the first action, just click + and type if and you will see it. Pictures are easier than words here so setup your if action as shown here in the picture:
So now you need to decide what happens "if" you press the top button (TASKERTOP) It's up to you pick anything you want, just add another action after the "if" action to assign it to that button.
You assign each button this way, one last picture to show you how it looks with each button assigned to an action.
If you found this helpful please hit the thanks button.:good:
Mine
You had a syntax error:
"uk.co.finebyte.pebblelgance.TASKERKEY" <- glance NOT lgance
Needs to be
"uk.co.finebyte.pebbleglance.TASKERKEY"
Took me awhile to catch that one. After that, everything works great. Thanks for the post.
slayorktc said:
You had a syntax error:
"uk.co.finebyte.pebblelgance.TASKERKEY" <- glance NOT lgance
Needs to be
"uk.co.finebyte.pebbleglance.TASKERKEY"
Took me awhile to catch that one. After that, everything works great. Thanks for the post.
Click to expand...
Click to collapse
Fixed. Thanks for catching that. :good:
This was really helpful, thank you
CYGNUZY said:
This was really helpful, thank you
Click to expand...
Click to collapse
Is there anyway to have Glance conduct hourly vibrates? I find myself wanting this feature a lot but cannot hide from the fact that Glance is just all around awesome.
I have messed around with Tasker very little and cannot find out how to program an hourly task. I tried creating a task that
1. Notify Vibrate - then Wait for 1 hour. It vibrates the first time on the phone then also the watch when I start it but there's nothing time specific. If I start the task at 8:10 then it'll vibrate at that time.
Hope someone can help.
Try making a profile that triggers every hour. Then have a task that broadcasts the intent " uk.co.finebyte.pebbleglance.TASKERVIBE"
The intent will make the pebble Vibrate.
Sent from my XT1060 using Tapatalk
Quentin.Sheley said:
Is there anyway to have Glance conduct hourly vibrates? I find myself wanting this feature a lot but cannot hide from the fact that Glance is just all around awesome.
I have messed around with Tasker very little and cannot find out how to program an hourly task. I tried creating a task that
1. Notify Vibrate - then Wait for 1 hour. It vibrates the first time on the phone then also the watch when I start it but there's nothing time specific. If I start the task at 8:10 then it'll vibrate at that time.
Hope someone can help.
Click to expand...
Click to collapse
Great job. I figured this out yesterday but man it racked my brain. Many thanks and this makes glance a NO brainer for my default app.
Sent from my SCH-I545 using xda app-developers app
what are some of the actions ppl are using glance+ tasker to perform? I've never used tasker but am willing to learn. I know it's extremely powerful but have never thought of anything I needed to run automatically. I'm sure some ppl have ridiculous profiles and actions setup. I read one guy has it configured to disable his lock screen when his pebble is connected and in range and enables a pass code when not.
Sent from my xposed VZW G2, using unlimited data
I use Pebble Tasker's ANDROID app, to populate the Tasker actions in Glance, with it's optional feature. Works great, much easier to set up and maintain, then setting it up via Glance's intents. The Pebble Tasker Android app, basically creates the intents for you.
I don't actually use the Pebble Tasker WATCH app at all. The author of Pebble Tasker, said he's adding Long Press Button support to his Glance Support soon! (awesome!) that'll increase Glance's actions to beyond 3!
As far as the Actions, I have my three Tasker buttons in Glance setup to do this:
1.) Flashlight (this triggers TeslaLED which has a tasker intent to toggle flashight / camera flash. One press to turn on, one to turn off.)
2.) Google Now (this opens the Voice Search application, so that I can interact with Google Now and do voice commands etc. I'm extra l33t, so I'm using the SecureSettings tasker plugin, to also first, turn the display on and wake the phone, and then disable keyguard (because otherwise, this won't work with the phonescreen off unfortunatly). It then waits 15 seconds, and re-enabled keyguard again).
3.) Voice Record (This starts recording via a tasker plugin for the app Easy Voice Recorder Pro. So when pressed, it starts a voice recording. Great for stealth recording, getting pulled over, etc. The author of Easy Voice Recorder is going to add a new Tasker option to "toggle recording" so you can start/stop with one button press. If Pebble Tasker adds long press support before that, then i'll just do Long press for Stop recording in the mean time).
somnambulator said:
what are some of the actions ppl are using glance+ tasker to perform? I've never used tasker but am willing to learn. I know it's extremely powerful but have never thought of anything I needed to run automatically. I'm sure some ppl have ridiculous profiles and actions setup. I read one guy has it configured to disable his lock screen when his pebble is connected and in range and enables a pass code when not.
Sent from my xposed VZW G2, using unlimited data
Click to expand...
Click to collapse
I use an app called Pebble Locker to disable the lockscreen when my watch is connected (in range). When it's disconnected, my phone then requires a PIN to unlock. I did have this set up in Tasker at one point, but Pebble Locker is much easier.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Quentin.Sheley said:
Is there anyway to have Glance conduct hourly vibrates?
Click to expand...
Click to collapse
This is now a feature IN Glance, doesn't use Tasker at all.
Protonus said:
This is now a feature IN Glance, doesn't use Tasker at all.
Click to expand...
Click to collapse
Sent from my SCH-I545 using XDA Free mobile app
Where?
Sent from my SCH-I545 using XDA Free mobile app
Quentin.Sheley said:
Where?
Click to expand...
Click to collapse
In the Glance Android app: Customise Watch -> Vibrate on the hour
NOTE - it's possible this is only in the beta version right now, I'm on v0.10b1

[GUIDE][Difficulty: Beginner] Prompt to add Previous Caller as Contact

Do you find yourself annoyed having to manually add someone as a contact after receiving a phone call from them? Would you rather be prompted with the option to add them as a contact before you fumble going through the proper menus? This short tasker task will do just that for you, using the power of intents.
Prerequisites
OPTIONAL: Snackbar Tasker Plugin to make a neat prompt asking you to add the previous caller as a contact
Instructions
Click + to create a new Profile and name it "Add Contact" or anything else you want.
Choose a "State" context, go to "Phone" and select "Call." Set the Type to "Incoming" and leave the Number field blank.
Back out, and name the task that pops up whatever it is you want.
{
"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"
}
Here's what your Profile should look like. Now, let's move on to the task itself.
Task --> If. For the first condition, put %CNAME ~ %CNUM. This checks whether or not the previous caller already has a set name by comparing it to the phone number they called from. If the two match, then that means the contact is not recognized. Press the + icon to create another Condition, and make sure that the two Conditions are linked by an And. For the second Condition, set it to %CNUM !~ 0. This checks to see if the previous caller was an unknown/private number, and if so, you won't be prompted to add them as a contact.
OPTIONAL: Plugin --> Snackbar Tasker Plugin. Select a "Bottom Sheet". Enter the configuration for the snackbar, and enter a title for the dialog that will pop-up (I put "Add caller as contact?"). Under "Items to appear in sheet separated by ","" put down Yes,No. Under "Commands to be sent separated by "," enter yes,no. Take note that there should be NO space between the comma. For the color name fields, enter the hex name for however you want the snackbar to be themed. When you're done, exit out by pressing the checkmark, then press the back key when you're back inside Tasker.
System --> Send Intent. Under Action put in android.intent.action.INSERT For Cat, leave it at None. For the Mime Type, type in vnd.android.cursor.dir/raw_contact. Next, for the first Extra field type in phone:[%CNUM] Finally, scroll down to Target and select Activity. If you followed the optional step above to make a snackbar, then under If set the condition to %bs_command ~ yes. This means the intent will only be sent if you select yes when the snackbar pops up after a phone call.
Task --> End If
That's it! Let me know if there are any suggestions you would make.
MishaalRahman said:
Do you find yourself annoyed having to manually add someone as a contact after receiving a phone call from them? Would you rather be prompted with the option to add them as a contact before you fumble going through the proper menus? This short tasker task will do just that for you, using the power of intents.
Prerequisites
OPTIONAL: Snackbar Tasker Plugin to make a neat prompt asking you to add the previous caller as a contact
Instructions
Click + to create a new Profile and name it "Add Contact" or anything else you want.
Choose a "State" context, go to "Phone" and select "Call." Set the Type to "Incoming" and leave the Number field blank.
Back out, and name the task that pops up whatever it is you want.
Here's what your Profile should look like. Now, let's move on to the task itself.
Task --> If. For the first condition, put %CNAME ~ %CNUM. This checks whether or not the previous caller already has a set name by comparing it to the phone number they called from. If the two match, then that means the contact is not recognized. Press the + icon to create another Condition, and make sure that the two Conditions are linked by an And. For the second Condition, set it to %CNUM !~ 0. This checks to see if the previous caller was an unknown/private number, and if so, you won't be prompted to add them as a contact.
OPTIONAL: Plugin --> Snackbar Tasker Plugin. Select a "Bottom Sheet". Enter the configuration for the snackbar, and enter a title for the dialog that will pop-up (I put "Add caller as contact?"). Under "Items to appear in sheet separated by ","" put down Yes,No. Under "Commands to be sent separated by "," enter yes,no. Take note that there should be NO space between the comma. For the color name fields, enter the hex name for however you want the snackbar to be themed. When you're done, exit out by pressing the checkmark, then press the back key when you're back inside Tasker.
System --> Send Intent. Under Action put in android.intent.action.INSERT For Cat, leave it at None. For the Mime Type, type in vnd.android.cursor.dir/raw_contact. Next, for the first Extra field type in phone:[%CNUM] Finally, scroll down to Target and select Activity. If you followed the optional step above to make a snackbar, then under If set the condition to %bs_command ~ yes. This means the intent will only be sent if you select yes when the snackbar pops up after a phone call.
Task --> End If
That's it! Let me know if there are any suggestions you would make.
Click to expand...
Click to collapse
Very nice, except I will never get this typed-in. Maybe publish the script that can be downloaded and inserted from tasker.
Dovidhalevi said:
Very nice, except I will never get this typed-in. Maybe publish the script that can be downloaded and inserted from tasker.
Click to expand...
Click to collapse
I added it as an attachment.
Working great. Thank you.
Good stuff man. I'll test tomorrow.
MishaalRahman said:
I added it as an attachment.
Click to expand...
Click to collapse
I had succeeded in doing this before. However, Tasker does not "see" this in either the projects or autimport folders. To where might I push it?
Dovidhalevi said:
I had succeeded in doing this before. However, Tasker does not "see" this in either the projects or autimport folders. To where might I push it?
Click to expand...
Click to collapse
It's a profile so it should go in the profile folder. To import a profile, you long-press on the "PROFILES" tab up top.
I notice that when I click "Yes" to add the caller as a contact, the phone number comes in the format [##########] with the brackets around it. Is there a way to make it come in the format +1 ###-###-#### ?
Akw6190 said:
I notice that when I click "Yes" to add the caller as a contact, the phone number comes in the format [##########] with the brackets around it. Is there a way to make it come in the format +1 ###-###-#### ?
Click to expand...
Click to collapse
The default intent action requires it to be formatted as such, as anything else simply makes the PHONE field end up as blank (not sure why). However, you can use AutoShare's intent builder with this intent in order to get around this. Credits to redditor /u/YoungKnave for this intent. You download this, import it into AutoShare, then inside Tasker rather than sending an intent through itself you would go to Plugin --> AutoShare and select the intent you imported. Then for the phone number, put %CNUM. I found that doing it this way properly formats it, however I didn't mention it above because AutoShare isn't a free app.
MishaalRahman said:
The default intent action requires it to be formatted as such, as anything else simply makes the PHONE field end up as blank (not sure why). However, you can use AutoShare's intent builder with this intent in order to get around this. Credits to redditor /u/YoungKnave for this intent. You download this, import it into AutoShare, then inside Tasker rather than sending an intent through itself you would go to Plugin --> AutoShare and select the intent you imported. Then for the phone number, put %CNUM. I found that doing it this way properly formats it, however I didn't mention it above because AutoShare isn't a free app.
Click to expand...
Click to collapse
Understood. I'll look into it. Thank you, sir.
MishaalRahman said:
It's a profile so it should go in the profile folder. To import a profile, you long-press on the "PROFILES" tab up top.
Click to expand...
Click to collapse
Found the profiles folder and moved it to there and was able to import it (one thing about tasker are all those non-intuitive, even hidden functions to try out, somehow )
Needs a Bottom Sheet and an AutoShare plugin. What do I install? A lot of plugins with paid additions by one author.
I tried this but I keep getting red marks on the if statement. Is there something I did wrong? Also, I couldnt download the file. How do I download it?
Thanks
Also, when I tried to import the profile, it kept saying failed to import profile data :/
Ok, most stupid question ever. Where do i get the tasker from?
Dovidhalevi said:
Found the profiles folder and moved it to there and was able to import it (one thing about tasker are all those non-intuitive, even hidden functions to try out, somehow )
Needs a Bottom Sheet and an AutoShare plugin. What do I install? A lot of plugins with paid additions by one author.
Click to expand...
Click to collapse
Snackbar Tasker Plugin and AutoShare are completely optional for this profile. The XML I attached uses it because I have paid for it and already use it frequently, but if you follow the instructions I've written above then you do not need to use either.
It might seem odd, but once you get into Tasker you will notice a recurring name in the most frequently recommended plugins: joaomgcd. This guy is a wizard at Tasker, and has made dozens of Tasker plugins. While you CAN do things without his plugins (as I've written) it does make things neater and simpler. It's up to you though.
arbolarc said:
I tried this but I keep getting red marks on the if statement. Is there something I did wrong? Also, I couldnt download the file. How do I download it?
Thanks
Click to expand...
Click to collapse
The red marks are fine. They simply mean that RIGHT NOW if you were to run the task it would fail the If statement. Meaning, the last phone call you had was from a recognized phone number, hence Tasker would fail this condition since it should only fire when the previous caller is not a recognized contact.
C114 said:
Ok, most stupid question ever. Where do i get the tasker from?
Click to expand...
Click to collapse
There are no stupid questions here! Here you go.
MishaalRahman said:
Snackbar Tasker Plugin and AutoShare are completely optional for this profile. The XML I attached uses it because I have paid for it and already use it frequently, but if you follow the instructions I've written above then you do not need to use either.
Click to expand...
Click to collapse
I installed them, not yet paid up. However, if I can get along without them, I already have a pretty crowded phone so a couple less apps would not hurt.
As I said, the problem is hand-entering all this stuff. Please attach a "virgin" version as well. Folks could try them both, see if they prefer snackbar's eye-candy or going bare is good enough. Unless I intend very involved usage, AutoShare might be overkill.
Not sure what I am missing, but the Send Intent action never fires for me, as the IF statement never passes.
I added a Flash action to verify that the %bs_command variable is being set correctly, and it appears to be.
Any ideas?
EDIT: Scratch that.. looks like my phone autocorrected one of the commands in the Send Intent action. Working now!
Nevernind i found the way

[GUIDE][Difficulty: Intermediate] Hold/Swipe-up Home Button to Enable One-Handed Mode

A few months back, I wrote about a hacky way to enable one-handed mode using a shell script, taken from this reddit thread. With this task (provided you have root access), you can enable one-handed mode just by holding down the home button or swiping-up from it.
Prerequisites
Root access
Instructions
(For Android 6.0+) Go to Settings --> Apps. Press the settings cog up top, then go to Default Apps. Enter "Assist & Voice Input" and for the "Assist App" choose Tasker. Be warned that doing this will stop the "OK Google" on every screen (and off) from working, but if you're okay with that then go ahead and change it!
(For Android < 6.0) Clear the default app that is set for swiping up from the home button. You will enable Tasker as your default app after you're done following the rest of the steps below.
Create a new profile and name it whatever you want, then choose the Event context. Go to UI, then choose Assistance Request.
Back out, and create a new task named 'Overscan' or whatever else you want.
{
"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"
}
Now, we'll make the actions needed for the task itself.
Task --> If. Set the condition to %Overscan eq 1.
Code --> Run Shell. For the Command, type in wm overscan reset. Check "Use Root" and then back out.
Variables --> Variable Set. Under Name, choose %Overscan, and set it to 0.
Task --> Else.
Code --> Run Shell. For the command, type in wm overscan LEFT,TOP,RIGHT,BOTTOM where each of the directions are the pixel counts that the screen will shift in. On my Nexus 6p, I've set it to wm overscan 0,845,0,0. See my article for examples.
Variables --> Variable Set. For Name choose %Overscan and set it to 1.
Task --> End If.
That's it! Now when you swipe-up/long press the home button, you'll launch the Overscan tasker task which will shift your screen depending on whether or not it has already been shifted. The %Overscan variable is a global variable that is set to 1 if the screen is shifted and 0 if not.
Of course, this isn't the only thing you can do with long-pressing the home button. You can also do and set the Assistance Request to open a web-search overlay on any app.
Un 6.0.1 i don't have the option to change the assist app to tasker
mi_guel69 said:
Un 6.0.1 i don't have the option to change the assist app to tasker
Click to expand...
Click to collapse
+1
mi_guel69 said:
Un 6.0.1 i don't have the option to change the assist app to tasker
Click to expand...
Click to collapse
Umer520 said:
+1
Click to expand...
Click to collapse
Tasker's Accessibility Service should be enabled for it to show up, try that.
Tasker's Accessibility Service should be enabled for it to show up, try that.
Click to expand...
Click to collapse
I have this enabled and tasker still doesnt show up.
Set to shake event instead
When I just use play button in Tasker it works fine, but if I shake it sets only top overscan ignoring rest parameters
Oneplus2, CM13
mrorange4287 said:
I have this enabled and tasker still doesnt show up.
Click to expand...
Click to collapse
I had this problem as well. Create the profile with the context event "Assistance Request" and it will be available for you use set in the Assist menu
@MishaalRahman
Thanks for this great guide! I first set it up as suggested and then switched it to a shake event, quite handy. I might end up using this with a swipe gesture from Nova launcher.
Do you have any idea how we could realize a shrinking screen just like Samsungs one handed mode? Example here -> http://www.androidcentral.com/sites.../2015/09/note-5-reduce-screen-size-screen.jpg
I did some research and I think it might work using the commands "wm size" and/or "wm density", but I have very little knowledge about how to use them properly. Maybe you can help me out on this...?
https://imgur.com/a/e3e3y
When I use this in the home screen and all drawer I get what's in the pictures. Any thing I need to change to fix this? I am using Nova launcher on a rooted nexus 6.
Hi, nice works but how to set correct overscan? I'm using OP2
digitalpig82 said:
@MishaalRahman
Thanks for this great guide! I first set it up as suggested and then switched it to a shake event, quite handy. I might end up using this with a swipe gesture from Nova launcher.
Do you have any idea how we could realize a shrinking screen just like Samsungs one handed mode? Example here -> http://www.androidcentral.com/sites/androidcentral.com/files/styles/xlarge/public/article_images/2015/09/note-5-reduce-screen-size-screen.jpg
I did some research and I think it might work using the commands "wm size" and/or "wm density", but I have very little knowledge about how to use them properly. Maybe you can help me out on this...?
Click to expand...
Click to collapse
To mimic Samsung's implementation, you will have to change the LEFT and RIGHT parameters. However be noted that it will really mess with a lot of apps and they won't display properly.
mrorange4287 said:
https://imgur.com/a/e3e3y
When I use this in the home screen and all drawer I get what's in the pictures. Any thing I need to change to fix this? I am using Nova launcher on a rooted nexus 6.
Click to expand...
Click to collapse
Some apps just don't turn out that well, unfortunately. Like I said this is a very hacky method.
b.age said:
Hi, nice works but how to set correct overscan? I'm using OP2
Click to expand...
Click to collapse
Experiment a bit. Make sure you set a fail safe to revert it back to normal, say if you shake your phone.
Thanks for this trick! But i don't seem to be getting tasker as an option in the voice assist list of apps. I do get secure settings though. Anything that i might be missing here? Also, i've granted accessibility permissions for tasker. On 6.0.1 - Nexus 5
AshKaiser said:
Thanks for this trick! But i don't seem to be getting tasker as an option in the voice assist list of apps. I do get secure settings though. Anything that i might be missing here? Also, i've granted accessibility permissions for tasker. On 6.0.1 - Nexus 5
Click to expand...
Click to collapse
Hey, make sure Tasker is enabled as an assist device in settings
MishaalRahman said:
Hey, make sure Tasker is enabled as an assist device in settings
Click to expand...
Click to collapse
Yeah, trying to do that exactly, am not getting taker as an assist device option.
AshKaiser said:
Yeah, trying to do that exactly, am not getting taker as an assist device option.
Click to expand...
Click to collapse
I think you have to uncheck "Beginner Mode" in settings first
MishaalRahman said:
I think you have to uncheck "Beginner Mode" in settings first
Click to expand...
Click to collapse
Thanks! It worked! I use pie controls from gravity box, so had to point to this task directly. A little glitchy, but still somewhat usable![emoji106]
Any way we can change the background color after the over scan? Just a thought!
Sent from my Nexus 5 using XDA-Developers mobile app
I have checked the 'root'box. Accessibility on for Tasker. But as you can see from the pic above, it's not running. See the red dot? I'm on 6.0.1 and use Google launcher. Long press on home doesn't work either. I get the su toast message saying Tasker has been granted su permissions but that's it. Any help would be appreciated. @MishaalRahman
Sent from my XT1562 using XDA-Developers mobile app
Hello!
Help needed, I am on Galaxy S6 and I am looking for a way to start / stop the task by long pressing the home button.
As for now I didn't figured it out.
Any help please?
How can I get the correct overscan

[Help] How to use Tasker to turn on AOD

Hello, I've just started to learn to use tasker and I can't set the task I'd like.
The idea is the same as this tutorial:
https://forum.xda-developers.com/lg-g6/how-to/alwaysondisplay-aod-substitue-missing-t3698336
So when you receive a notificacion of the selected apps, AOD turns on, and when you delete the notificacion, AOD turns off. So it wil save a lot of battery compared to AOD always active
I hope some more experienced user can make it work, as I'm totally lost right now.
Thanks!
Anyone, please? Thanks in advance
I manage to make it worked, so where do you want to start ?
sanctitude888 said:
I manage to make it worked, so where do you want to start ?
Click to expand...
Click to collapse
Mainly I don't know how to set the task "turn aod on/off"
Well, all you need is to download the two xml files to your device. I'm using Opera, so I chose download link option, that ended up downloading the xml file. Grant tasker all necessary permissions in 3 dots, more, Android settings. Otherwise, Tasker won't work properly. Tap on 'tasks' tab twice, and select import. Do this for the two attached files. Then create a profile according to guide in given link, choose one or multiple apps at once, when you press back Tasker will ask you associated task, select correct task. Repeat another profile. Toggles both profiles if it has not already, then tap check mark on top of Tasker app. You are then, good to go. I'm not an expert by any mean, just one step from labelled a complete noob, I just love to try new things so in case any further things to clear up just keep this conversation going.
---------- Post added at 02:41 PM ---------- Previous post was at 02:25 PM ----------
There is an app mentioned in the post, which is AOD edge https://play.google.com/store/apps/details?id=com.used.aoe, I also gave it a try and it also worked nicely and beautifully when properly configured. You might wanna give it a try to avoid all the complication. Just remember to scroll all the way down to save your settings. It's free.
sanctitude888 said:
I manage to make it worked, so where do you want to start ?
Click to expand...
Click to collapse
Actually what doesn't work for me is the tasks to turn on AOD. I've followed the steps and they just don't work. I previously had a LG G6 in which it worked flawlessly, and I thought that they need to be adapted to Galaxy note 8 firmware. But since you said it's working for you, I am confused.
Everything on my side is correctly set (permissions and so) but the tasks doesn't work, not even turning them on manually
I'm going to send you screenshots of profiles and tasks later on. In the meantime, try the following :
1. Exclude tasker from battery optimization
2. Turn AOD on, go to lock screen, check if aod works. Then turn it off, it should be off for this profiles to work. Remember aod will disappear if unread notif has been read.
sanctitude888 said:
I'm going to send you screenshots of profiles and tasks later on. In the meantime, try the following :
1. Exclude tasker from battery optimization
2. Turn AOD on, go to lock screen, check if aod works. Then turn it off, it should be off for this profiles to work. Remember aod will disappear if unread notif has been read.
Click to expand...
Click to collapse
The problem seems to be with the task itself, as you can see in this screen recording.
blackhawk_LA said:
The problem seems to be with the task itself, as you can see in this screen recording.
Click to expand...
Click to collapse
To my understanding, the task is basically similar which differentiate by value, '1' for aod_on and '0' for aod_off.
You can find the screenshot of my profile below, with a few chosen apps corresponding to aod task. The two profile seems to be identical visually but they actually cover different event as mentioned in above guide.
sanctitude888 said:
To my understanding, the task is basically similar which differentiate by value, '1' for aod_on and '0' for aod_off.
Click to expand...
Click to collapse
Yes, I knew that. But the task seems to do nothing on Samsung devices. Maybe it needs to be rewritten.
Can you confirm you have a Samsung Galaxy and it's working for you?

Categories

Resources