Step-by-Step: Maximize battery by toggling Sync with Tasker
Someone was asking how to do this over in the
Speed Rom thread...
Setting up
Tasker to toggle Sync On / Off during the work day is a good way to prolong battery life. I already have Tasker doing other stuff for me, so this uses few additional resources.
This is a quick and dirty setup, but it works and it's dead simple - perfect for someone who's never used Tasker before. I'm sure someone here could come up with a more elegant solution, so please feel free to get fancy...
First we're gonna setup 3
Tasks ("tasks" are the bits that actually do the work).
AutoSync On,
AutoSync Off, and
AutoSync 5 minutes.
Those Tasks will be used by 2
Profiles (the "profiles" tell those tasks when to run).
AutoSync Home (Sync ON in the evening, then OFF in the morning),
AutoSync Work (Intermittent Sync 3x from 8:00a-5:00p).
Anyway, launch Tasker then
tap Tasks. Hit the + key.
When prompted, enter the name for the first one...
"AutoSync On", then...
> check > + > Net > AutoSync > (Set) On > check > check. You're done.
Do the same thing again for AutoSync Off, with the obvious differences.
+ > "AutoSync Off" > check > + > Net > AutoSync > (Set) Off > check > check. Done.
AutoSync 5m will turn AutoSync On... for 5 minutes... then off. 3 steps.
+ > AutoSync 5m > check > + > Net > AutoSync > (Set) On > check
(now you'll add a second & third action to this same task)
+ > Task > Wait > + (minutes + 5x to read 5 minutes) > check
+ > Net > AutoSync > (Set) Off > check
You can see here what the Task will do in 3 steps.
Tap "check" and you're done with the 3 Tasks.
Those are going to be ran from the two Time Based Profiles called "AutoSync Home" and "AutoSync Work".
Profiles > + > "AutoSync Home" > check > Time
I've set the times
from 17:00 (5pm)
to 8:00 (set it to whatever you want / it can be adjusted later, but the evening is first)
> check > Select the
"AutoSync On" Task that you made
Press and hold "AutoSync On" > Add Exit Task < "AutoSync Off"
That'll automatically turn on AutoSync at 5:00pm, and turn it off again at 8:00am. Make sure the Profile is checked (to the right of the name) to make it active.
AutoSync Work.
Same as above, but the
From time is 10:00 > Repeat every 2 hours > To 14:00.
Select the AutoSync 5m Task. No exit task.
That'll turn AutoSync on for 5 minutes during the day at 10:00am, 12 noon and 2:00pm. Again, check the Profile to make it active.
Tap Check to Save and Minimize. If you run a task killer, you'll want to make Tasker exempt. Also, when you get everything working the way you want, backup your work (
Menu > Data > Backup).
Tasker can do much much more. This is the tip of the iceburg. Check out the
Tasker Site and the
Tasker Wiki.
I'm not affiliated. I just like the program. Really. It's the most powerful program I've found for Android. When someone shows you a cool app they have on their phone (or 5), you can say "Tasker can do that (all that)"
Once you get Tasker doing things for you, take your Amaze to the next level - get some NFC Tags and
NFC Task Launcher which has, you guessed it, Tasker intergration! Once setup, you'll never have to touch the phone again... it'll just automagically do your bidding. <insert evil laugh>