[GUIDE][Difficulty: Beginner] Prompt to add Previous Caller as Contact - Tasker Tips & Tricks

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

Related

[ROM] HTC Droid Incredible ADR6300 MIUI.us Presents MIUI Pure English [AOSP]

{
"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"
}
Presents the Official
MIUI Friday Updates ​
This is a community support ROM only!
The developers do not provide much support for this ROM on these forums
Support is mostly provided on forums.MIUI.us
New release comes every Friday.​
If you haven't heard about this ROM yet then check out the videos in the 2nd post to see it in action!
This is an excellent ROM if for no other reason than it introduces the first non-CyanogenMod/carrier/manufacturer framework overhaul of Android 2.3.7 and boy what an overhaul.​
Changes from base ROM
Removed: MIUI App Sharing | MIUI OTA Updater | MIUI Bootscreen | SIM Toolkit
Added: Custom Bootscreen | English Translations | Google Maps | Google Voice Search | MIUI.us Forum app
If you want ADW.Launcher or LauncherPro install them from Market.​Proceed To Download
Download it here
Change Log:
Weekly Changelog:
Click here for changelog done via StiffSpliff
MIUI for Beginners​
Source: http://en.miui.com/a-10.html
Already flashed MIUI ROM? OK, pick up your phone now, let’s start our happy journey of MIUI ROM.
The first step: selecting apps
Various apps will greatly enrich your cell phone, so firstly let’s select the apps to your taste. Use the Android Market and download what you would like. If you are using a backup app and restoring apps from a previous ROM, only restore the apps and not the data. Otherwise that will create a lot of force close issues.
Tip: How to copy files from the computer to the phone? First connect your phone to your computer via data cable, pull down the notification panel from the top of the phone, click “USB connected”, and then click "Turn on USB storage”.
After copying, do not forget to select the option of “Turn off USB storage”, otherwise "File Manager” in the phone will not be able to find the sd card, as it is being occupied by the computer.
Now I have a lot of apps, how to put them in order?
All apps successfully installed are listed on the desktop, however, they may not be in the order you want, how to put them in order?
Long press an app icon and then you may move it freely. When it is moved to the screen border, the screen will automatically switch to the next screen.
How to add a screen? Use two fingers to pinch on the desktop to enter screen thumbnail mode. Then you may add or delete screens.
How to delete an app? Long press the app icon you want to delete, drag it on top of the trash box and click OK to delete it.
The second step: let's make your phone different.
A phone without style is nothing remarkable, so let’s make your phone different!
Changing wallpaper: Click Menu button on the desktop, select “Change Wallpaper” to replace the wallpaper. In addition to the existing wallpaper in the phone, thousands of pieces of wallpaper are also available online.
Changing theme: Themes make great changes to your interface style. Click “Theme Manager” on the desktop to select the theme you like. Also, more online themes are available online.
Selecting ringtones and more: click “Settings” on the desktop to set call and notification ringtones. In “Personalization” under “Personal” tab, you may find more options.
The third step: it’s time for some advanced techniques!
Well, you are no longer a beginner now, so let’s learn some advanced techniques.
Adding widgets on the desktop: press the Menu button on the desktop, select "Edit Mode", and then click the icon on the upper right corner to access the interface of “Add Widgets”. Choose your favorite widget on the top, and then drag it to the screen below.
Using folders to manage desktop apps: in the interface of “Add Widgets”, drag [Folder] to the desktop. You may drag multiple apps into folders to classify them. After opening the folder, you may click the edit icon in the upper left corner to rename the folder.
Using toggles panel to improve efficiency: drag the notification panel down from the top, click "Toggles" to go to the toggles panel (It goes to the toggles panel in default of notice.) On the panel are listed the most commonly used toggles, you may click to quickly enable or disable a toggle. Long press on the icon will launch the settings for that icon.
Guest mode: enable the “Guest Mode” toggle in the panel, and your calls and text messages logs will be hidden, and all installed applications cannot be removed. You may have a try when you need to show your phone to guests or children.
Importing contacts or binding accounts: you may use some apps to import a batch of contacts, or bind Google account directly in "Settings"> "Personal"> "Accounts & Sync Settings" to sync contacts at any time.
How to print screens? Press "Menu" key and "Volume Down" key at the same time to print a screen. The printed image is saved in the directory of MIUI in the SD card.
How to copy files from the computer without using the data cable? In case of a Wi-Fi connection, enter “File Manager” on the desktop, select the tab of "Remote Administration" to start the service, and then you will get an address. Enter the given address on the computer, then you may copy files without using a data cable!
Core Features​
MIUI HOME
Two-layer shortcuts and program icons are integrated into one-layer desktop.
Long press on an icon to enter edit mode, open Widgets and drag it to the target screen.
Drag the app you want to uninstall to the top of the trash box to delete it.
Eight kinds of flipping screens effects are available with gorgeous animations.
T9 dialer
T9 dialer is applied for smart dialing. It supports searching by contact name and phone number, and the results are listed according to contact frequency.
The default setting is to forbid any third-party app to monitor users’ calls.
Currently, there are 230301 attribution logs. The attribution data will be updated continuously, codes of foreign countries are supported as well.
SMS
Compared with native Android system, 7 major optimizations on SMS are made:
Adding contacts in short messages;
Adding names in group sending messages and automatically adding the names to Contacts;
Easier taking of numbers, urls and email addresses from short messages;
Optimization on mobile newspaper reading;
Collection of important messages;
Recommended messages for holidays;
Quick reply and view window.
Contacts
Quick location of contacts;
Faster to add new contacts;
Contacts group management supported;
Contacts' large images supported.
Themes
The third edition UI loading engine makes it faster and easier to change themes;
Partial theme customs are more flexible and comprehensive. Rich online wallpapers, ringtones, fonts and so on are available.
Camera
Faster loading speed enables you to take photos immediately.
More professional modes such as continuous shooting, timing and special effects supported.
Gallery
Faster picture browsing speed than that of native Android system;
Brand new view mode supports to view the pictures by folder path.
Music
Simultaneous enjoying and downloading massive online music. Music chart live playing and bulk downloads supported;
Automatic connection of lyrics and album covers. ID3 information editing supported;
Changing songs by swinging the phone and sleep mode supported.
Notifications
After pulling Notifications and Toggles panel down, changing panels by sliding the screen supported.
MIUI apps
File Manager, Traffic Monitor, Backup, Notes, and Torch.
Tips & Tricks​
Long Press:Long press on the icon in Toggles will launch the settings for that icon.
Screen Shot:Press "Menu" key and "Volume Down" key at the same time to print a screen. The printed image is saved in the directory of MIUI in the sd card.
Hold HomePress Home key at the first screen, you may preview screen thumbnails and add or move screens.
Delete Message or Call Log : Slide from left to right to quickly delete a message or a call log.
Edit Mode : You may hold down an icon by one hand to enter Edit Mode, and then use the other hand to slide the screen to move the icon to the target screen.
Call Activated : Your phone will vibrate when a call gets through.
Activate Music from Lockscreen : Double tap the time zone to launch the Music Player when the screen is locked.
Quick SMS/Phone Launch : In the lockscreen, hold down the icon of Call or SMS, and you can enter the responding program.
Quick Launch Torch : Hold down Home key to quickly enable the torch when the screen is locked.
Quick Launch Contact Options : Click the contact image in Calls, SMS and Contacts, shortcut menus will pop up.
Long Press Search : Long press on Search button will launch search via voice recognition.
Recovery Reboot : Click menu in “System Update” to reboot and enter recovery.
% for Battery : The battery will display the percentage of left battery capacity by Settings>System>Battery>Notification Indicator Style>Percentage.
Running Apps List : Long press on the Home button can go to “Program Manager”. Click the “Clear up” button at the bottom left to clear the extra processes in memory. And the system will inform you of the released memory and current available memory.
Note: System processes will not be cleared so as to ensure the normal running of the system.
IP Calling : . How to set IP dialing?
MIUI ROM can add an IP prefix for the called number in a strange land. You may set it in Settings>Common>Calls.
You may also long press the contact item before dialing, and choose “Make IP calls” in the pop-up menu.
Reject Call : When you are not available to answer the phone, you may slide up the panel to reject the call and to send a message to the caller at the same time.
Custom Ringtones : . How to set custom ringtones?
Put media files into the Media/Audio/ringtones directory in the SD card, (If there is none of this directory, please create one manually) and then select in Sounds in Settings.
Note: there are three directories under Audio, corresponding to the following tones:
notifications--notification ringtones
ringtones--incoming call ringtones
alarms--alarming ringtones
Supported formats: MP3, WMA, WAV, Midi, etc.
Important SMS : As for those important messages you want to add to your favorites, you may long press the message in the pop-up menu and select "Favorites". You may switch to "Favorites" tab in the main SMS interface to view collected messages.
Quick Delete SMS : How to quickly delete items?
You may slide from left to right on the item and click on the red "Delete" button when it appears.
Tether : How can I share my network to the PC or other terminals?
Firmware of Android 2.2 and above support the sharing of mobile phones to other Internet terminal in the following method:
Go to "Settings" -> "System" -> "Share mobile network", you may choose to share the Internet connection by USB tethering or setting up portable Wi-Fi hotspot. [/QUOTE]
MIUI never looked so good
This rom has definately come a long way. I might have to give it a shot again.
Really good to see all the info. Still rocking MIUI as my daily, love it!
Never flashed miui because of the iPhone look, but may have to now. This looks great.
I'm totally in!!
I have using this for last couple of weeks or so. I am loving this ROM.
spence341 said:
Never flashed miui because of the iPhone look, but may have to now. This looks great.
Click to expand...
Click to collapse
People who think this way are only missing out on a great ROM. It may look similar to iOS when you start, but it has its distinct style and ways of doing things. I particularly like the battery top bar, which is simply a green or red line across the top of the screen that shrinks or grows with the battery level.
Please do try it. There really is no harm in doing so as you can always nandroid back to your last backup, or flash to another ROM.
is the dark theme in the OP animation a default dark theme? or does it have to be downloaded through the theme manager?
is it safe to save apps with data, dont wanna loose my spot in some of my games lol or should i just wipe and redo everything. i normally save my wifi spots also and contacts with titanium should i or no
downloading right now. def gotta try this one out! i usually only run sense roms but this looks sick! haven't tried miui in months
For those that are turned off by the iphone look, just use launcherpro instead of the stock launcher. It's an awesome rom! Totally fun to play with, it's unlike any other rom out there right now
Sent from my HTC Incredible
TheWhiteBandito said:
For those that are turned off by the iphone look, just use launcherpro instead of the stock launcher
Click to expand...
Click to collapse
This Exactly! I use ADW EX and love it. This rom has my favorite menu/notifaction interface out of all the roms.
The SMS quick reply pop-up alone is worth using this rom.
gnargnarshreder said:
is it safe to save apps with data, dont wanna loose my spot in some of my games lol or should i just wipe and redo everything. i normally save my wifi spots also and contacts with titanium should i or no
Click to expand...
Click to collapse
In my experience, apps with data are safe and work fine going from Sense based roms to this one. It's the settings data that I'm unsure about as I prefer to set all that up manually.
ghostrida said:
is the dark theme in the OP animation a default dark theme? or does it have to be downloaded through the theme manager?
Click to expand...
Click to collapse
The dark theme has to be downloaded, it's definitely the most popular.
As for the iPhone look - just get a new icon pack and use beautiful widgets and it will look much more Androidish.
This is just a screen cap of my home screen a couple weeks ago.
Oh, and to do a screen cap, you don't need an app. Just push vol down and menu softkey at the same time and it does it.
I'm getting a force close everytime I try to do anything related to Theme Settings
RamAir02 said:
I'm getting a force close everytime I try to do anything related to Theme Settings
Click to expand...
Click to collapse
Known bug with this build. A new build should be up late tonight or tomorrow.

[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

Tasker/TasGear samples

Post your ideas and thoughts for others
Required apps:
TasGear: http://forum.xda-developers.com/showthread.php?t=2707248
Tasker (PAID): https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm
NOTE: Tasker is a very complex, yet rewarding app. I'd suggest reading up on tutorials (a few links in post 2) and playing around with profiles/tasks/variables before attempting examples below
Couple of other useful threads:
http://forum.xda-developers.com/showthread.php?t=2553172
http://forum.xda-developers.com/showthread.php?t=2604278
http://forum.xda-developers.com/showthread.php?t=1110775
http://forum.xda-developers.com/showthread.php?t=890596
http://forum.xda-developers.com/showthread.php?t=2396591
http://forum.xda-developers.com/showthread.php?t=2489449
http://www.pocketables.com/tag/tasker
http://goo.gl/nfVCsK
http://goo.gl/Nn12Le
Another good example for sending multiple variables:
http://forum.xda-developers.com/showpost.php?p=52023147&postcount=273
Quick Links:
Gear Battery to Phone: http://forum.xda-developers.com/showpost.php?p=52149321&postcount=3
Phone Battery to Gear: http://forum.xda-developers.com/showpost.php?p=52230340&postcount=29
NOTES:
If task is not working:
- try exiting all the way out of tasker and then getting back in (or restart device)
- try setting variable on VARS page manually
A simple example is Gear Battery displayed on Phone
I use ZooperWidget (there is a FREE version available too)
Make sure you've enabled external access in Tasker preferences
{
"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"
}
Phone:
- Add new Profile
- Event -> System -> Intent Received
Action:com.orbonis.gear.tasker.MESSAGE_RECEIVED
- Add new Task
A1) Variable Set
%G_BATT to %gear_batt
A2) Plugin, Zooper, configuration
ZW Variable g_battery
ZW Text %G_BATT
Save
Watch:
- Add new Profile
- Event -> Display -> Display On
- Add new Task
- Misc -> Send Intent
Action:com.orbonis.gear.tasker.consumer.MESSAGE_HOST
Extra: GEAR_BATT:%BATT
(Note: there is not meant to be a space between o and s of HOST)
(Note: some users found that inserting a space between the : and % of the extra helps)
Widget:
Layout -> Rich Text
Edit text manually
#Tg_battery#
Eg.
Gear Battery: #Tg_battery#%
This displays:
Gear Battery: 54%
Show Flash Message on watch from phone (this will display the word 'test')
Phone:
- Add new task
- Misc -> Send Intent
Action: com.orbonis.gear.tasker.MESSAGE_GEAR
Extra: MESS:test
Watch:
- Add new Profile
- Event -> System -> Intent Received
Action com.orbonis.gear.tasker.consumer.MESSAGE_RECEIVED
- Add new Task
- Alert -> Flash
Text: %mess
Brendo said:
A simple example is Gear Battery displayed on Phone
I use ZooperWidget (there is a FREE version available too)
Make sure you've enabled external access in Tasker preferences
View attachment 2705426
Phone:
- Add new Profile
- Event -> System -> Intent Received
Action:com.orbonis.gear.tasker.MESSAGE_RECEIVED
- Add new Task
View attachment 2705427
A1) Variable Set
%G_BATT to %gear_batt
A2) Plugin, Zooper, configuration
View attachment 2705428
ZW Variable g_battery
ZW Text %G_BATT
Save
Watch:
- Add new Profile
- Event -> Display -> Display On
- Add new Task
- Misc -> Send Intent
Action:com.orbonis.gear.tasker.consumer.MESSAGE_HOST
Extra: GEAR_BATT:%BATT
(Note: there is not meant to be a space between o and s of HOST)
Widget:
View attachment 2705429
Layout -> Rich Text
Edit text manually
#Tg_battery#
Eg.
Gear Battery: #Tg_battery#%
This displays:
Gear Battery: 54%
Click to expand...
Click to collapse
So to clarify this. Ive got a good hang on tasker its self however not used to making it send and receive with another device. When creating a profile on the watch are you installing tasker on the watch as well? I did not see an area to add a profile in TasGear on the watch its self.
Sorry if it sounds dumb but i didnt see it lol
Thanks!
freddy0872 said:
So to clarify this. Ive got a good hang on tasker its self however not used to making it send and receive with another device. When creating a profile on the watch are you installing tasker on the watch as well? I did not see an area to add a profile in TasGear on the watch its self.
Sorry if it sounds dumb but i didnt see it lol
Thanks!
Click to expand...
Click to collapse
Yes, you need Tasker on both
Sent from my SM-T520 using XDA Premium HD app
Brendo said:
Yes, you need Tasker on both
Sent from my SM-T520 using XDA Premium HD app
Click to expand...
Click to collapse
I knew it. Lol. I was like Nah I don't see that anywhere. Then I felt dumb asking lol
Sent from my SCH-I605 using Tapatalk
Excellent thread.. hoping to see more here in the future
@Brendo Can you post a reverse example of how to get the phone's battery level to display onto the gear in a widget? :fingers-crossed:
I have few that I use that are pretty basic but if you are interested I'll post how I did it.
- Turn my pc on or off from my gear.
- Silence my phone - sends me a notification letting me know if the phone is in fact in silent mode.
- Phone battery - my gear speaks my phone battery level. I downloaded the hd British male voice so it sounds like jarvis. He says "my reserves are at 'blank'% sir" also if my battery is above 90% he'll say "very good sir" and if it's below 30% he'll say "I could do with a little more juice sir"
- Take a picture with my phones front camera.
- Then for a prank I can hide my phone and then have it play fart sounds controlled remotely from my gear. It makes for a good laugh. I've scared my wife with it a bunch.
Sent from my SPH-L900 using XDA Premium 4 mobile app
doubleohzero said:
I have few that I use that are pretty basic but if you are interested I'll post how I did it.
- Turn my pc on or off from my gear.
- Silence my phone - sends me a notification letting me know if the phone is in fact in silent mode.
- Phone battery - my gear speaks my phone battery level. I downloaded the hd British male voice so it sounds like jarvis. He says "my reserves are at 'blank'% sir" also if my battery is above 90% he'll say "very good sir" and if it's below 30% he'll say "I could do with a little more juice sir"
- Take a picture with my phones front camera.
- Then for a prank I can hide my phone and then have it play fart sounds controlled remotely from my gear. It makes for a good laugh. I've scared my wife with it a bunch.
Sent from my SPH-L900 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The 3 bolded, I would be most interested in! :fingers-crossed:
lazer9 said:
@Brendo Can you post a reverse example of how to get the phone's battery level to display onto the gear in a widget? :fingers-crossed:
Click to expand...
Click to collapse
Should be exactly the same, but switch send intent action around
I also have mine displaying unread counters on my gear - a feature I missed from pebble - I might post it up, but it's a bit more indepth. And as I have profiles that are mosly triggered on location it displays current location (work, car, home, etc) and current status of volume (on, off, vibrate)
Tasgear just stays at the spinning Circe screen when I open it.
Brendo said:
Should be exactly the same, but switch send intent action around
...
Click to expand...
Click to collapse
Does this look right from your example to re-direct Phone's battery level to Gear widget?
Click image for larger version
Gear:
- Add new Profile
- Event -> System -> Intent Received
Action:com.orbonis.phone.tasker.MESSAGE_RECEIVED
- Add new Task
A1) Variable Set
%G_BATT to %phone_batt
A2) Plugin, Zooper, configuration
Save
Phone:
- Add new Profile
- Event -> Display -> Display On
- Add new Task
- Misc -> Send Intent
Action:com.orbonis.phone.tasker.consumer.MESSAGE_HO ST
Extra: PHONE_BATT:%BATT
(Note: there is not meant to be a space between o and s of HOST)
Layout -> Rich Text
Edit text manually
#Tg_battery#
Eg.
Phone Battery: #Tg_battery#%
This displays:
Phone Battery: 54%
Thread lightly cleaned, time for a reset in here.
Lets do this again, and this time lets follow posting rules by being respectful and not creating unnecessary drama, shall we?
Be nice, or get out.
Brendo said:
Show Flash Message on watch from phone (this will display the word 'test')
Phone:
- Add new task
- Misc -> Send Intent
Action: com.orbonis.gear.tasker.MESSAGE_GEAR
Extra: MESS:test
Watch:
- Add new Profile
- Event -> System -> Intent Received
Action com.orbonis.gear.tasker.consumer.MESSAGE_RECEIVED
- Add new Task
- Alert -> Flash
Text: %mess
Click to expand...
Click to collapse
I must be missin something TasGear does not give any option to add new profile from the watch side (it just lists profiles that have already been saved) how did you install TasGear and what version are u using?
David_cole said:
I must be missin something TasGear does not give any option to add new profile from the watch side (it just lists profiles that have already been saved) how did you install TasGear and what version are u using?
Click to expand...
Click to collapse
you need tasker on the watch also, with the same preferrences.
tkjeeper said:
you need tasker on the watch also, with the same preferrences.
Click to expand...
Click to collapse
So what is the purpose of TasGear?
David_cole said:
So what is the purpose of TasGear?
Click to expand...
Click to collapse
Gives you access to the tasks/profiles on the phone. Thus allowing you to control the phone from the watch
Sent from my SM-N900W8 using xda app-developers app
---------- Post added at 05:50 PM ---------- Previous post was at 04:56 PM ----------
Brendo said:
A simple example is Gear Battery displayed on Phone
I use ZooperWidget (there is a FREE version available too)
Make sure you've enabled external access in Tasker preferences
View attachment 2705426
Phone:
- Add new Profile
- Event -> System -> Intent Received
Action:com.orbonis.gear.tasker.MESSAGE_RECEIVED
- Add new Task
View attachment 2705427
A1) Variable Set
%G_BATT to %gear_batt
A2) Plugin, Zooper, configuration
View attachment 2705428
ZW Variable g_battery
ZW Text %G_BATT
Save
Watch:
- Add new Profile
- Event -> Display -> Display On
- Add new Task
- Misc -> Send Intent
Action:com.orbonis.gear.tasker.consumer.MESSAGE_HOST
Extra: GEAR_BATT:%BATT
(Note: there is not meant to be a space between o and s of HOST)
Widget:
View attachment 2705429
Layout -> Rich Text
Edit text manually
#Tg_battery#
Eg.
Gear Battery: #Tg_battery#%
This displays:
Gear Battery: 54%
Click to expand...
Click to collapse
Ok, did all this, free zooper tho, and all I get in phone is gear battery: %. I know in the other thread for tasgear it said something about going into tasker and inputting a random # for battery percentage to start it off, do I have to do that with this? And if so where exactly in Tasker, and which tasker, phone or watch? Thanks.
tkjeeper said:
you need tasker on the watch also, with the same preferrences.
Click to expand...
Click to collapse
Correct
David_cole said:
So what is the purpose of TasGear?
Click to expand...
Click to collapse
TasGear allows 2 way communication between tasker on watch and tasker on phone. Also allows for launching phone tasks from watch
tkjeeper said:
Ok, did all this, free zooper tho, and all I get in phone is gear battery: %. I know in the other thread for tasgear it said something about going into tasker and inputting a random # for battery percentage to start it off, do I have to do that with this? And if so where exactly in Tasker, and which tasker, phone or watch? Thanks.
Click to expand...
Click to collapse
The # things are the variables that zooper uses. Match them up and you'll see that it goes tasker variable intent phone from watch (temp) -> tasker variable on phone (permanent) -> zooper readable variable
GEAR_BATT:%BATT = set GEAR_BATT to system battery level
%G_BATT to %gear_batt = Set system variable to input from intent
#Tg_battery# = User tasker variable in format of #Tvariable#

[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

[GUIDE][Difficulty: Beginner] Enable Speakerphone when Phone is Placed on Table

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

Categories

Resources