yashsingh1/xdaforums huggingface dataset:
[Desire HD General] expremo:
jep that did the trick for me too, thanks!
[Desire HD General] PGLion:
I will have to send my Desire HD back to HTC because of a broken battery-lit. I need full stock because of the warranty. Is this method sufficient or do I have to change radio and S-ON as well?
[Android Apps and Games] skulk3r:
Tasker is a very powerful program for Android devices that lets users have complete control over the automation of their phones.

I have seen a lot of fragmented threads about different profiles and requests for help. So I have decided to make a thread to collect profiles and advice for people from different devices to use (hopefully in an easy to understand English!). Also, I'm not a huge Tasker wiz! I just hope that everyone can contribute in one place for everyone at xda. So please send me/the contributor a PM if you see a post that is wrong.

Contents:

Post #2 - Links to submitted guides/profiles

Post #3 - Basics of Tasker

*Disclaimer*

I do not have ownership (whole or part thereof) of the Tasker Android Application. This guide is for educational purposes only. I, or any contributor to the guide, is not responsible for any faults (software or hardware) resulting from following the instructions set out in this guide.

Tasker is available from the Android Market or in trial form from the website

Admins: If this thread is unnecessary please delete and let me know, thanks.

Submission of Profiles:

If you have a profile that you would like to share, please put it into this standard form so that people can more easily understand what to do:

##(example 1)##

Profile: "Wifi at home"

Context:

Variable "HOME" [matches] "1"

Wifi-near [(SSID of home/work/school wireless network)]

Activity:

Wifi [ON]

Mobile Data [OFF]

Mobile APN Enabled [OFF]

Exit Activity (if any):

Wifi [TOGGLE]

Mobile Data [ON]

Mobile APN Enabled [ON]

##(end example 1)##

OR if you want to submit a walk-through as well:

##(example 2)##

Tap Context

Add

Application

Google Maps

...etc

##(end example 2)##

Absolute Beginners:

If you are completely new to Tasker, you need to check out the Tasker website and wiki.

The program may seem unwieldy and complicated at first for those who do not have programming experience - I certainly found it a little intimidating at first - but once you play around with it, it helps a lot. The guides on the wiki and on the website are a little confusing, so hopefully this thread will help decode some of the settings/profiles into plain English.

The wiki is worth checking out for the walkthroughs and downloadable profiles - so take your time to check it out!

duckredbeard has also pointed out that there is a google group for Tasker which is supported by the developer himself. So if you need some trouble shooting, check that out too.
[Android Apps and Games] skulk3r:
Turning GPS on only for GPS apps and then turning them off again

Automagically switching wifi on and off

...slowly building more. post to contribute!
[Android Apps and Games] skulk3r:
--just in case--
[Android Apps and Games] skulk3r:
Using GPS only when needed:

In normal use, apps like Weather, Places, Latitude, etc, only need to know which suburb/cell tower you are using. If you have your GPS switched on, then it becomes a huge waste of battery. Here is how to set it so that your GPS switches on when you use a GPS app, and then to switch it off again when you exit that app.

Profile: "GPS on"

Context:

Application

Google Maps

Locations

Navigation

...etc

Tasks:

GPS [ON]

Exit Tasks:

GPS [OFF]
[Android Apps and Games] skulk3r:
Automagically switching wifi on and off

The Easy Way:

Profile: "Wifi at home"

Context:

- Wifi-Near [(Set as your work/home/school/etc SSID and MAC address - do this by long-pressing on the dialog box for Tasker to scan for you)]

Tasks:

- Wifi [ON]

Exit Tasks:

- Wifi [OFF]

This method has Tasker checking for your wifi network according to the settings you placed in:

"(Tasker Home Screen) Menu -> Preferences -> Monitor"

However, this theoretically leads to more battery usage because Tasker is always checking for your wifi network even when you are nowhere near your wifi network. You could always have it check your location using your GPS, but this is even worse for your battery. A way to reduce this battery drain is to lower your "Wifi/GPS Timeout" setting and increase your "Wifi/GPS Scan" setting. This will cause Tasker to check for wifi networks/GPS location for a smaller duration and less frequently - the downside is that Tasker will be less responsive when you enter into your wifi network (eg: if you set Tasker to check once every 10 minutes, then you might have to wait 10 minutes before Tasker kicks this profile into gear)

Slightly more complicated way:

This requires 2 profiles.

Profile 1: "Home"

Contexts:

- Cell Near [(press 'scan' to let Tasker find out what cell towers are near you)]

Tasks:

- Set variable "%HOME" = [1] (this is a variable i defined myself)

- Wifi [TOGGLE]

Exit Tasks:

- Set variable "&HOME" = [0]

- Wifi [OFF]

Profile 2: "Wifi at home"

Contexts:

- Variable "%HOME" matches [1]

- Wifi-Near [(SSID of home/work/school/etc)]

Tasks:

- Wifi [ON]

- Mobile Data [OFF]

- Mobile APN Enabled [OFF]

Exit Tasks:

- Wifi [TOGGLE]

- Mobile Data [ON]

- Mobile APN Enabled [ON]

(you can also enable Auto-Sync if you wish)

Explanation:

This method can theoretically save battery and increase the responsiveness of Tasker. It does it by only enabling the Wifi-scanning when you are within a certain cell-tower(s) area. Since checking for your location via the mobile network does not require much battery (and also since your phone is automatically doing it for your weather app anyway), you can set your Network Scan time to something quite low (I have it at 15 seconds). Once you are in the general area, then Tasker begins to look for your wifi network. Because you are not always searching for the wifi network, you can increase the frequency of the searches and also increase the duration of the search.

This does require a bit of testing - I find that it works quite well, but that could just be my area. Have a go and see what you find.
[Android Apps and Games] Insomaniac10:
dont mean to cut down your efforts here, but: http://tasker.wikidot.com/
[Android Apps and Games] Daft Templar:
It will be nice to use this thread as a helpful discussion area on programming tasker as their does not to be such a place on the tasker wiki site.

Maybe you can help to achieve this state.

Is it possible to have several IF variables?

Ie.

Between hours 21:00 - :06:30 Reduce phone ringer to 2

If Location (network operator) = Home

and Power is connected

and phone has been idle for 30mins.

I have been playing with Tasker but having no programing experience it is difficult for my brain to wrap around how I would achieve this.

any hints?
[Android Apps and Games] skulk3r:
yeah, I'm aware of the wiki - but the wiki doesn't answer all the questions and I feel it isn't organised very well (not that this would be organised any better). Plus, a forum opens things up to discussion and sharing, which I'm sure a lot of people will appreciate. feel free to contribute!
[Android Apps and Games] skulk3r:
I believe that if you put all of those 'variables' into one profile and make them all contexts, then you would be able to do that. But don't forget to set your task priorities properly!

Have you tried:

Profile: (profile name)
Contexts:
- Time [21:00-06:30]
- Wifi-Near [(your home SSID)] (also see my post about how to reduce wifi-searching to increase battery life)
- Power [Any/AC/USB]
Tasks:
- Ringer Volume [Level 2, (Sound, Display if you want as well - good for debug)]
Exit Tasks:
- Ringer Volume [(whatever you like your volume level to be at)]

I am not sure how to do your "Phone Idle" condition as I have never had to use it before - I suppose that you could always set another 2 profiles:

1 to countdown to 30 minutes which then sets a variable (say, "Timer") equal to 1 and has a context that tells it to run the profile every time "Timer" = 0; the other profile would have set "Timer" = 0 every time the Display turned on. You could then add a "Timer [matches 1]" context to your original profile, and that should work.

This seems like a rather roundabout way to do it, but that's what I can think of at this time. Let me know if you would like me to post up the instructions to do that though.

If anyone else has a better idea, let me know!
[Android Apps and Games] Daft Templar:
I think when using tasker (particularly with lots of profiles) It is important to keep things as simple and clean as possible. Otherwise if certain tasks start becoming too dependant on other tasks it will either reduce your ability to program new tasks or Things will start going pear shaped.

For Example. If I were to program the phone with Wifi-Near to Enter silent mode It will affect any other Tasks I have going with the Wifi, Either it being Turn wifi Off Or stop searching or Even If My network goes down. I think (if possible) it would be better to use a different more non varried method of location if you know what I mean. I think it would go for any other tasks you would want to program as well. Keep things simple and very direct, It will also help you too trace back and find problems if needed later down the track as well.
[Android Apps and Games] skulk3r:
whilst it is good to try and keep things simple, sometimes more complex profiles lead to more efficient use of battery. Or sometimes a simple task may need certain exceptions so that it fits around our lives. Remember that Tasker should be making our phones do what we want, how we want it - we want to try and avoid the "i'll get used to it" line as much as possible.

When using complex profiles (or even profiles that may end up conflicting each other), the use of priorities for your task is very important. For example - when my "wifi at home" profile gets switched off, it turns my wifi onto [TOGGLE]. BUT if I leave the cell-tower area near my house at the same time, it tells it to turn wifi onto [OFF]. Since these are conflicting tasks, I have given my wifi [OFF] a higher priority than [TOGGLE], and so Tasker does what I want. As with any programming, sometimes convolution is unavoiable - in those instances make sure that you keep your line of logic clear (some people like to use flowcharts for programming, but i think that's a bit excessive for Tasker - each to their own though!)
[Android Apps and Games] sundar2012:
is there a way to tell when music is playing?
[Android Apps and Games] Michealtbh:
I want to use Tasker to switch off data/wifi when the screen is switched off, then switch data/wifi back on again when the screen is on, but only if they were previously on. Is this possible?
[Android Apps and Games] Izkata:
The Exit Task is unneeded. For all On/Off toggles, Tasker returns them to their original state on exit automatically.
[Android Apps and Games] skulk3r:
As far as I know, your phone will automatically switch off your wifi when you have your screen off (unless you installed a mod/app that forces it to stay open). I believe that Tasker (by default) will switch it off unless you have put wifi to [TOGGLE]. However, if you wanted to be completely sure, you can always use variables.

ie: you can make a profile that sets a variable (say, "WifiON") to 1. and then when you make a "screen on" event profile, make it Wifi [ON] IF WifiON [matches 1].

Oh wow, I must have completely missed that! Thanks for the help =] Feel free to continue to share/post guides.

I haven't found it on Tasker - but then, I don't really know Tasker as well as some other people here. You could always try to use the launching of the Music app as a context, or use the headphones plugged in event as a context?
[Android Apps and Games] duckredbeard:
If you haven't been to the google group for tasker, you should go NOW. It is moderated by the developer himself. He answers questions every day, including updates on what to expect on the next version. There are dozens of users on that group that can and will help you with the infinite number of things Tasker can do for you.

Head over to http://groups.google.com/group/tasker/topics?gvc=2 and read a few pages. It is likely that your questions have already been answered.
[Android Apps and Games] Coedy:
Whenever Ive previously tried Tasker it savages my battery...

All I had it doing was at a certain time turn on mobile data, open rss reader (so it updates) then play a beeping .mp3

Just wanted a flashy alarm clock to get to grips with it. but always see 25% less available battery with it installed than without...
[Android Apps and Games] skulk3r:
oh wow. thanks for that. I'll chuck it up on the first few posts.

Would still like this to be a share-some-love discussion though!

what is your device? I have seen improved battery life with my HTC Desire Z - I usually only had about 30-40% battery at the end of the day with light texting, some calls and web surfing. Now i have about 60%! Although that's not completely Tasker - I do have SetCPU to underclock during screen off times.

Did you turn the mobile data back off?
[Android Apps and Games] Coedy:
Yep, had it to turn off mobile data and then enable wifi when I close the news app.

(I usually keep wifi on 24-7 if Im at home that day).

I say it took about 25% of my battery because I usually get 36 hours with everything on (except BT) and with tasker going I only got slightly over 24hours... (maybe like 26 or 28?)

Its a HTC Hero btw. Maybe ive just tuned it so that its at its optimum battery for me and my situation? I just think its weird that whenever I use Tasker within the next 2 days the battery has dived down to 20 something hours from around 35+
[Android Apps and Games] dedy66:
And how i can do that ? Sorry i`m a newbie in this.
[Android Apps and Games] Brendo:
Long press a profile's task (one with green arrow)

_____
[Android Apps and Games] dedy66:
Thank you ;)
[Android Apps and Games] Schwabie64:
Hey, do you know if there is a way to have navigation running in the background [like on the notification bar giving you directions] and still have GPS enabled? Every time my phones screen goes off GPS gets disabled because of the Exit Task. [I use Widget Locker as my lock screen]
[Android Apps and Games] moonjak:
Anyone got this figured out? Exactly what i need allso.

(= BeanStalk LGG2 =)
[Android Apps and Games] Brendo:
Perhaps try wait command on exit?

Wait 15 secs, if is not open, turn off gps

_____
[Android Apps and Games] horhokokki:
Is there any develop with this program? I have checked the website and it's says last update somewhere in June and last update for google play is in August?
[Android Apps and Games] Brendo:
Why does it matter?

_____
[Android Apps and Games] horhokokki:
Because if there is no updates coming, I will just stick on trigger or automateit or something. Would be nice if there is updates coming for new sensors (Samsung tempereature sensors for example) and bug fixes and other little things time by time.
[Android Apps and Games] MobiMikes:
Tasker is in constant development. Check out the beta and the tasker group on Google groups. Automateit and others are nowhere near as powerful as tasker btw.

Sent from my speak and spell.
[Android Apps and Games] supernice44:
Using this, which is great. I wonder though, how can I extend this to turn on and off all access to my location, including Wi-Fi & mobile network location?
[Android Apps and Games] tabnnaj:
Many Thanks ,

Help me by hit like here :

https://www.facebook.com/BankMuscatMeethaq/posts/576114045788466
[Android Apps and Games] IceTwig:
I was wondering if someone can point me to the right thread (if this is already covered) tried searching but didn't find it.

4.2.2 Stock / Rooted / SafeStrap / SGH-i337 GS4

Latest Tasker and Secure Settings.

I have this power saving task that starts at 12am and finishes at 6am.

AP mode Toggle (Secure Settings)

Power Saver Mode (Secure Settings)

GPS Toggle (Secure Settings)

Sync Toggle

Silent Mode

It starts the process at 12am fine but when it reaches 6am then AP, Power & GPS do not revert to off, everything else reverts to its previous state.

IF I add an exit task then it only restores what was set to toggle

any ideas?

Thanks!
[Android Apps and Games] error404:
I was using a profile that enables GPS when i received a specific SMS, i was on CM10.1. Now that i'm on CM10.2 my GPS isn't turning on. =(
[Android Apps and Games] Brendo:
Download and install Secure Settings plugin
[Android Apps and Games] rambo69:
how do you set 2 contexts for 1 profile ???
[Android Apps and Games] rambo69:
Never mind found it already

Verstuurd vanaf mijn HTC One met Tapatalk
[Android Apps and Games] LuisLAN:
Hello everyone,

Is it possible to use the "Wifi near" trigger when Wifi is off?

I know that it sounds like a dumb question, but given new android's ability to get locations using Wifi, even when it is off I thought it could also be possible to accomplish what I'm asking
[Android Apps and Games] rambo69:
it's possible if you have wifi always available selected in in options >> Wifi >> Advanced >> Wifi always available

Grtz
[Android Apps and Games] txx3:
hi

i did a mess with my Profil ..maybe you guys can help me out, what i want is:

when out of area home turn wifi (home) off

instead switch data on

when reaching work switch wifi (work ) on

when leaving work switch work off and switch data on and so on ...any idea?

also bluetooth off when music off

i am only using bluetooth for my headset

thx guys
[Android Apps and Games] LuisLAN:
Hello!

I'm trying to find an event or trigger that gets activated when the screen is locked (not only off but locked)
[Android Apps and Games] Ja_som:
Hi,

I have a question...

Is there a way to have a shortcut to profile (not task) on home screen? Which will work as toggle?
[Android Apps and Games] The LPT:
just create the profile you want that is triggered when a variable is a certain value. Then create a task that will toggle that value. That task can be made as a shortcut on the home screen
[Android Apps and Games] Ja_som:
Can you please tell me how?

Thanks

EDIT:

I found it :D

Sent from my tablet. Odoslané z môjho tabletu.
[Android Apps and Games] Copyright0201:
Tasker and Spotify Playlist

Hey Guys,

I'm looking for an answer since a few weeks, but can't find something helpfull.

I want to create a wake up call with a Spotify Playlist.

I found some Codes but they didn't do anything but open Spotify.

Is there any possibility to create this wake up call?

I have a Galaxy S4 with 4.4.2 and root

It would be more than great if anyone has an answer for this.

This is the code i tried in many different ways:

Best reguards

Max
[Android Apps and Games] Ja_som:
Hi,

me again :)

I need some help...

I want to create task with two flash messages, one will shown when profile "Minioni" is ON, and other when profile "Minioni" is OFF. Is that possible?

I tested this (see attached picture), but it's not working :(
[Android Apps and Games] duckredbeard:
Do you have a variable called "Minioni" that gets set to "on" or "off" upon toggle?
[Android Apps and Games] Ja_som:
No... I have only profile called "Minioni"... That was only a try... I'm new in variables, i don't know how to use them...

I have profile called "Minioni" which has his own task. Then I make a task, which I place on home screen, and this task toggles "Minioni" profile. And I would like to add to this task two flash messages, one will shown when profile "Minioni" is ON, and other when profile "Minioni" is OFF, as I said in my previous post.

Can you please help me with this? :o

EDIT: so i got it
[Android Apps and Games] RS050377:
I need help please.

I want Tasker to press Blocking mode toggle in notification toggles if connected to docking station. How can I do this?
[Android Apps and Games] DaveWW00:
Enter Username/Password Automatically

I have been searching around figuring out how to do this and cant seem to find answer. I am using BlueIris software to run security cameras on my property. I would like to use Tasker to turn the alerts off in that program when i get home and on when i leave. Blue Iris has a web server so this can be done. The command to change between on/off is: http://{IP Address}:{ port}/admin?signal={ 0 for off, 1 for on}. Problem is if i do that command a login screen pops asking for username and password. Once you type that info in it automatically switches to the setting you requested. Is there a way to have Tasker enter that username/ password automatically so this works? i have tried username: password@ipaddress: port....... but that doesnt work. Can somebody please help me figure this out? I appreciate your help in advance. Thanks!
[Android Apps and Games] Sperafico:
Hi guys,

I have a Nexus 5 with the excellent Purity Rom and I encounter problems with network detections when it switch by himself to another network (Edge, 3G, 4G) depending on the coverage data.

Indeed, I ask to Tasker to launch Tunein Radio in my car when the mobile network switches to 3G, 3G+ or 4G, I made ​​a variable for this.

Here is a concrete case, I'm in an area receiving only Edge. After a few minutes I see network switch to H then stabilize to H+ .

We agree that my profile for the variable above should go active but nothing moves, it remains inactive.

However when I go back in Tasker (I'm at this point still in H+), I disable and reenable the profile, validating with the home button., Tunein Radio runs without problem.

I even made ​​a condition by asking disable and enable the profile every 30 seconds to "update" the automatic switch network but this changes nothing. It remains inactive, even though I am in a H+ coverage area.

If someone has an idea why and possibly offer me a solution or alternative ...

Thank you
[Android Apps and Games] dark_dude:
Don't know if this is the right place to ask. If not, parton me.

I'm looking for a way to launch games for ePSXe within tasker. I know this emulator can create shortcuts but this didn't work for me because you have to create it from within ePSXe.

All I found was that it is possible with xbmc so I thought there has to be a way using tasker. Maybe sending intents or using a terminal command. Do some of you know how it is possible?

Many thanks
[Android Apps and Games] Brendo:
Anyone know a way to create a shortcut in launcher drawer that will launch a task? App factory be the only way?
[Android Apps and Games] giano2002:
Simple Bluetooth On/Off when in/out Car

I am a beginner Tasker user and on this forum. I hope this is the right place to post my idea.

I found a very simple way to switch on/off Bluetooth of my Galaxy Note 2 when I enter or go out my car.

It is based on the variation of magnetic field, detected by magnetic sensor of Note 2.

I noticed that in my car the values of magnetic field are 3 or more higher than outside it. So I created a task that switch on/of Bluetooth.

It seems to work. It only needs to set a value of magnetic field so it does not trigger Bluetooth when you are outside the car.

But if in the car the magnetic field is the same outside it, it is possible put a little magnet near the place where you leave the cell, and it will trigger on BT.

Profile: Bluetooth on car

State: Magnetic field: From XX to Any; done

Task:

Bluetooth On; Display rotation Off; Beep; done

exit task:

Bluetooth Off; Display rotation On; beep; done.

I set Magnetic field from 180 microT. But this value can be modified, according to the value of magnetic field detected in the car..

Any suggestion?
[Android Apps and Games] cschumann:
Task every x minutes works only until midnight

Hello,

I have set a profile with "every 30 minutes" but my task runs only until midnight. Where is the error?

Christian