[tutorial] Tasker: Take your Android phone to new heights
Tasker is an android app that allows users to create specific tasks to execute when certain conditions are met. These can be events, such as putting a phone in a dock, plugging it in, or getting a text message or phone call. It can also be a certain time period or certain days of the week or even a GPS location. There are many other options that are possible, and allow a pretty useful automation of your Android phone. You can create tasks to edit many settings in your phone and do many things with your phone.
This application has been by far the absolutely best application I have ever purchased for my phone. It costs a few dollars and is worth every penny. However, if you wanna to try it for yourself go to the developer's page, there's a link at the bottom of the page where there's a 14 day trial. Be aware, that there is a steep learning curve but once you understand it, it's very useful.
Profiles
A profile is a list of items to execute. This starts with a context which is the item which starts the execution. There can be more than one which is much more complicated and I'll go over that later. To create a profile, hit new and select a context such as time, application, event, or state. Once you have selected a context, you can add other items to actually execute once the context is reached.
Tasks
Tasks are small reusable profiles. The main use for these is, for example, a airplane mode toggle. One of Tasker's features is that you can create links to tasks you create so you can use them on the fly and they don't have to be programmed into a context. I have three shortcuts on my home screens, display backlight full/off and airplane toggle.
Exit Tasks
Exit tasks are an additional component to profiles which are executed when the profile stops and the context is no longer applicable. For example, when I plug my phone into my dock between certain hours, it turns wifi on, display off, and silent mode on, and when i remove it from the dock, it turns wifi off, display on and silent mode off. These are very useful and should usually be on a profile.
Step by Step
Now that you understand the basics of how Tasker works, I thought I'd share with you how to go about creating both a simple and a complicated profile to help you learn some tips and uses of some advanced techniques for profiles.
GPS on Map Open
This profile will turn on GPS when the map application is open and turns it off when closed. This conserves battery life so that the GPS isn't needlessly searching for location. This is very useful for smartphones since they have notoriously poor battery life.
Create a new profile, name it whatever you choose.
Choose Application > Maps (<b>note</b>: you can choose more than one application, such as Car Mode or another app which uses GPS)
Now add a step (Misc > GPS > On)
Now add your exit task (Misc > GPS > Off)
[img]
Music Popup on Headphone Plugin
This profile will pop up a list of music applications when you plug in your headphones. From there you can choose which application to open.
First create a new profile, name it whatever you like. Mine is named Music
Choose State > Headset Plugged. There is a type selection, which shows with mic, without mic, or any. I've chosen any since i don't have any headsets with mics but if you want to create a separate task for headphones with a mic, choose without.
Now, create a new step for each and every application by choosing: App > Load App. I've chosen the stock music application, and pandora.</li>
There's a button in the bottom right corner of two tools crossed. Click this and change Task Type to Menu, and if you wish change the other options such as Timeout and Background.
Press done and apply and your task will now work when you plug in your headphones. However, I've gone a little further by adding an exit task for when i unplug them, to go home.
To add an exit task, go to the list of profiles and click on the right side of the profile where it lists the steps.
Choose Add Exit Task and continue normally.</li>
Night Dock
This is the most complicated as it uses multiple contexts, which to fully unearth the potential of Tasker, must be mastered. If you don't own the media dock, you can substitute the Dock for AC power and have it open your alternate dock program or have it open the Clock app.
First, add the context State > Docked. The other contexts will be Time contexts but we'll get there after.
The steps are:
Phone > Silent Mode > On
Net > Wifi > On
Display > Display Brightness > Level 0
Exit Task:
Phone > Silent Mode > Off
Net > Wifi > Off
Display > Display Brightness > Level 150
The other contexts are up to you. I'm a student so I currently have 3 tasks that are almost identical. One for the weekdays Monday through Thursday, one for Friday, and one for the Weekends, all with different time contexts depending on my class schedule and when i wake up on weekends.