
Tasker is one of the best applications ever built for android and is among the important reasons why I chose an android as my companion. From automating phone profiles to acting as a location reminder tool, it does everything that I can think of and pushes the limit of the phone to a new height.
I’m not really a tasker guru but I’ve played with it for long and have collected a bunch of profiles that make my (already awesome) phone even awesome.
Basic Things to be known
Adding a new Profile
- Click on New –> Give it a name –> Add a Context. Here context simply means a condition. Like, if it’s time i.e., the time is between 00:00 AM and 6:00 AM, do something.
- To add multiple contexts, tap an existing contest and select “Add”.
New Task
- Tap on the + icon and then, select an action category. For example, if you want your phone to go offline at night, Select Net > Airplane Mode.
- Further, if you wish to save a particular task, click on the “New” button at top right corner. You can then use this task in any profile but also note that any change in the task will affect all the profiles which are using this task.
I suppose you’ve got the basic ideas. For more help, press Menu > User-guide or click the “?” button in any action window. (A web version of user-guide can be found here.)
Tasker Tutorials
1. Use it as an Anti-Theft Application
An anti-theft application is among the most essential app for your multi-hundred bucks phone. But instead of paying for a separate app, tasker can be easily configured to do many of the stuffs that a tracking app does.
a) Tracking with GPS
Lifehacker has written a very detailed tutorial on getting your phone’s location with GPS. Instead that I copy that and write the same thing here, with li’l re-arrangement of words, I recommend you to read it here.
b) Remotely enable GPS*
Context: Event –> Phone –> Received SMS.
Now, choose a number that you own and set the message to something like “GPS ON”.
Action: Misc –> GPS.*Doesn’t work on stock Android v2.3.3+, only supported by select ROMs
C) Email phone’s Location (Tutorial link)
d) Remotely wipe data
Context: Event –> Phone –> Received SMS
Action: File –> Delete Directory (check “Recurse” or it won’t delete non-empty folders)e) Take Photos Remotely
Context: Received SMS
Action: Media –> Photo or Photo Series
Check “Discrete” (for taking snaps secretly) and uncheck “Insert in Gallery”(Photo series will add increasing numbers when saving the photo, Photo will simply over-write the existing file)
f) Email the Photos (Tutorial Link)
g) Making Tasker Indestructible*
If you haven’t installed Tasker, open a file explorer with root capabilities and move tasker’s apk file to: /system/app
If it’s already installed then backup it’s apk installer and move it to the above location. Then, install it. (Replace – Yes)
This way, Tasker won’t be deleted even if a new ROM if flashed (Why? that “app” folder remains untouched)
*root required
2. Start music player when headphones are connected
Context: Headset Plugged
Action: 1) App –> Load App > Music
2) Audio –> Media Volume –> 10 (ensuring that loud music doesn’t hurt your ears)
3) Alert –> Popup –> “Music Time!”
3. Enable USB Tethering when USB is Plugged to a PC
Context: State –> USB Plugged
Action: Net –> USB Tether
4. Switch to Silent Mode When There’s an Appointment in the Calendar
Context: State –> Calendar Entry (Available – No)
In Title, add words like “*meeting*”, “*busy*” etc., separated by “/”. So whenever any calendar event contains these words, this profile would be activated.
Example: “*meeting*/*busy*/*party*”
Action: Audio –> Silent Mode
5. Enable WiFi when at Home
Context: State –> Cell Near
Tap the “Start” button and move around your home as your area may be covered by several cells (the “<” sign represents the tower you’re currently connected to). You may stop it after few minutes.
Action: Net –> WiFi
6. Automatically switch profiles in certain areas
The same way as I showed you above, how to enable WiFi when at home, you can do the same for switching profiles as well, like when you’re in your college, office or anywhere.
Context: State –> Cell Near
Action: Audio –> Silent Mode
This is not very accurate though, and you can use GPS (Context: Location) instead for this. Warning: It may use more battery.
7. Forward/Block Certain Calls During a Certain Time Period (At night?)
Context: Time –> 00:00 AM to 6:00 AM
Action: Phone –> Call Divert (or Block)
8. Shake to Control your Phone
Context: Event –> Misc. –> Gestures
Gestures can only record accelerometer gestures, like tilting of phone towards right or left. To record a simple gesture, hold the device and long press the volume up key. Tilt it, press volume up key. Then tilt back to the final position. Again, long-press the volume up key. Everytime you’ll feel a vibration. You get the idea now, go on and experiment with gestures.
Action: Add whatever you want. Like if you wanna control music, add this:
Media –> Media Control
9. Enable Silence Mode by Turning down your Phone (and do other stuffs as well)
Context: State –> Orientation –> Face Down
Action: Audio –> Silent Mode
10. Send Scheduled SMS (like Birthday Wishes?)
Context: 1) Day
2) Time
Action: Phone –> Send SMS.
Number: Anything you wish.
Message: “Happy Birthdayyy Anu!”
11. Scale Up/Down CPU Speed at Different Times
Yeah I know, there’s SetCPU app for under/over clocking CPU but it cannot be used to scale up or down when specific apps are launched or during a certain time period. So here’s how this can be achieved with Tasker. This is a very advanced profile and relatively long as well.
- You’ll need 2 apps for this profile: Locale Execute plug-in (free) and a terminal editor such as the Android Terminal Emulator. Download them from the link given and install ‘em.
- Download this script and save it to your sdcard.
- Open up the terminal editor and type these lines:
su mkdir /data/local/bin mv /sdcard/setcpu.sh /data/local/bin/setcpu chmod 755 /data/local/bin/setcpu
5) Now, Create multiple profiles, categorized like:
- Display off: “CPU LOW” (Context: Event –> Display –> Display Off)
- Playing a game: “CPU HIGH” (Context: Application)
- Battery > 50%: “CPU MED” (Context: State –> Battery Level)
Then, in each of them, execute the Locale Execute plugin the script in the following format:
/data/local/bin/setcpu <min> <max> <scaling type>
e.g.: “setcpu 200000 800000 ondemand” will set my cpu speed to 200Mhz at minimum and 800Mhz at most with the scaling type as “ondemand”. In most of the kernels, “ondemand” and “performance” are available as the scaling governor.
ondemand - When the CPU load reaches a certain point, ondemand will rapidly scale the CPU up to meet demand, then gradually scale the CPU down when it isn’t needed.
performance - It will keep the CPU running at the “max” set value at all times for best performance. (via)
(Credits to clvv for this tip)
12. Automatically Respond to SMS when you’re Busy (or when Phone is Docked)
Context: Time –> Select a time during which you usually sleep.
Action: Phone –> Send SMS
Number: “%SMSRF”, Message: “Sorry I’m busy right now, will catch you later”.
When the Phone is Docked
You can add extra tasks such as make your phone say out the sender’s name, message body etc.:
Action: Misc. > Say. Add some text and an Engine: Voice. Tap the Search icon to choose one.
(Variables: %SMSRF / %SMSRN / %SMSRB / %SMSRD / %MMSRS / %SMSRT
The sender address, name, body, date and time of the last text (SMS or MMS) received)
13. Disable Screen Lock when Camera is on (or another app)
Context: Application –> Camera
Action: Display –> Display Timeout (Set the time-out to a high value)
14. Automatically Change Wallpaper
Randomly
Context: Select any context, like set a time duration, during which wallpapers would be randomly rotated.
Actions: 1) Variable –> Variable Randomize.
Name – “%PICNO”, Min – 1, Max – 4
2) Display –> Set Wallpaper.
Image – “path/to/wallpapers/picture%PICNO.jpg
3) Tasker –> Wait –> 4 Hours (or any other value)
4) Tasker –> Goto Action –> Number 1
based on weather: Tutorial Link
based on battery level
Take this as my challenge for you. You need to do make this profile on your own.
Hint: State –> Battery Level
15. Instantly Take a Photo without waiting for Camera to launch
In life, some “perfect” moments will never wait for us to take our camera and shoot it. So here’s how you can create a shortcut on your home-screen to instantly take a photograph.
Long-press on the Home-screen > Shortcuts > Task
Action: Media –> Photo Series Time (So that new photos don’t overwrite the previous one and every new photo will have the time attached with its name.)
If discrete is checked, there will be no sign of the picture being taken.
16. Use it as a Location Based Reminder Tool
Context: Location
Action: Phone –> Send SMS.
Number: Add your own number
Message: “You gotta buy Milk dude!”
You also need to add a time for this. Tap the context again to add another context:
Time –> Due Time. Done!
Share your Secret Profile / Got a Problem?
If you’re either using a handy profile (not listed in this post) that makes your daily life easier or got any problem while using the profiles I mentioned above, I would be really happy to hear from you. Drop in a comment below!
For more such updates, You can follow us on Twitter - @TechSplurge.
Quite deeply tutorial you have mentioned. Is this steps will implement on Micromax android A60?
A great in depth review! Reading your blog just makes me love android more and more! great post. Now this site goes in my google reader!
Why the hell would someone send a SMS to himself when arriving at a location when Tasker can also trigger a Popup event?!
Hey there, cool things that are really worth trying (esp. the instant photo and the earphone tasks)
I’m a bit overstrained with this program, but maybe you could help? What I want to do is preventing certain apps from transferring data through WiFi and the mobile connection. Or let’s say it this way:
IF
one of the apps called “Blah”, “Yippee”, “Oh yeah” and “Dingdong” is started
THEN
shut down WiFi and mobile data connection
AND
leave it this way until I close that app
I would be insanely happy if you could help me out with this.
Hi Chris, if your phone is rooted you can try using a firewall application which would block internet access to any app you want. Two good ones:
Avast and Droidwall. Feel free to ask more.
Yeah well, the problem is that I don’t really want to root my phone because that’ll void the warranty. And the phone is just brand new…
So it seems like I have to deactivate mobile internet and in the options manually before starting the apps. Anyway, I just wanted to have it more comfortable.
Most of the phones can always be un-rooted so you’ll get your warranty back. Rooting my SGS2 was the first thing I did after purchasing the phone, it unlocks so lots of possibilities
It used to be easy to root/unroot the Xperia X10 mini pro according to my research in the web. I saw some apps for it where you could root/unroot the phone with just tapping the icon.
But with the Xperia mini pro (the follow-up of X10) that isn’t possible without flashing and stuff. So I’ll better wait for some app that can do it the above mentioned way… I’m good at computer stuff etc but I’m a noob with smartphones and especially Android. :-S
Hmm okay I leave this decision over to you
P.S.: Your email address is interesting.
Application -> Select applications
Action ->Net -> Mobile Data/ Wifi Off
I got some other help from a forum. First of all I can save the existing Apps via AppMonster. And then, for Windoes, there is an APK editor with which you can unpack and modify the contained XML file and then re-pack them again. In the XML-file you can edit what you want to allow and what you don’t want to allow.
But thanks a lot for YOUR help anyway.
The email address, well… i’m much into harder music, and “Voice Of Disrepair” is a song of the band Only Living Witness. They did some cool mix between hardcore and blacksabbathish metal back in the 90s.
Hmm that seems quite tricky, can you point me to that tutorial please?
No problem, this is the link: http://blog.widp.de/medien/android-apps-rechte-einschraenken
Unfortunately, it’s all in German. But to make it simple, just do:
1. Get AppMonster on Android Market or similar and save all your desired installed apps. Then transfer them on your PC. Some Apps are already in APK format, so you don’t need AppMonster for those ones. Transfer all the desired apps to your PC.
2. Download APK Editor here: http://forum.xda-developers.com/showthread.php?t=890199
3. On the above-mentioned tutorial, I think I’ll make a translated summary:
..a. First the Editor asks you where your Java exe is. It’s commonly in C:\Program Files\Java and then somewhere in the jre7blabla folder. Choose that once.
..b. Then you can load any APK, but the options in the GUI are not very satisfying. What you need is the “browse” option that you’ll find on the 2nd tab called “Details”.
..c. In the browsing window, you can load the “AndroidManifest.xml” with a code editor like Proton, Notepad++ and edit it. Scroll down to the tag.
..d. Above this tag you can find the rights the app is demanding. Delete the ones that you don’t want to allow. A description of all the rights can be found here: http://developer.android.com/reference/android/Manifest.permission.html
..e. When done, click “apply”, then “ok”. This lets APK Editor “re-pack” the APK
After this, you can install the re-packed app.
Important: Check the license of the apps to make sure you don’t violate the law.
The process sounds quite tricky. But this way you cannot let the application use the internet again na? You’ll again have to modify its apk file for that.
Pingback: Firewall for Android: Restrict Internet Connectivity to Apps
It’s less tricky than it looks. And yes, the process has to be done again to undo the changes (unless you still have the non-modified apk)
I have tasker setup to go into airplane mode 10 mins after my tablet sleeps. I want it to do this all the time unless it is playing music or any sound is coming from the tablet. I use it a lot to listen to internet radio and music. I dont want to set it up to not go into airplane mode when these apps are running because I may stop the music but forget the close the app.
Can you help?
Ah sorry Chris but I don’t know of any way to detect sound in Tasker
I tried to find about it in few forums (I guess you too must have did that) but couldn’t find anything useful.
Well thanks for the help anyway. I may put a toggle to turn that profile off or just have it check to see if the app is running.
This may be a bit late, but you can always make a profile that sets a variable when the apps that need the internet are running and unsets it when they exit. Then you add a check to see if the variable is set in your profile that turns on airplane mode.
Just installed tasker and experimenting few things cant figure out following scenario, it will be great if you can help.
I dont like to listen to whole song so I skip and go to next song after say 2 min. How can i configure that so it will play next song after 2 min.