[Android Software Development] brandall:
Conclusion

Knowing my phone can remain in deep sleep between syncing times with all data connections switched off has got to be good for battery life? If I ever stop fiddling with my phone for long enough, I'll let you know!

Let me know your feedback please folks, inconsistencies, errors, I’m all ears.

FAQ

Q) I didn't understand the %WIFIPREF variables and how and where I add in my own %WIFIWORK ones etc? Help!

A) A wrote an additional tutorial on how to do this and why here

Q) These profiles always turn my phone to 2g only. I like to use 3g preferred - what do I do??

A) Remove action #21 in the task AutoSync

Q) I don't always want my data connection to be turned off after I sync & I want to leave wifi on if connected to a preferred network.

A) See this post for ideas - credit Nacrul

Q) I don't want to switch between 2g/3g and how do I keep mobile data connections to their original state so I don't disconnect?

A) See this post for ideas - credit lodder

Q) I have many other Tasker questions, can I post them here??

A) To avoid clutter, probably best to use this official Google group

Q) Where can I learn more about Tasker?

A) The manual and Profiles and step-throughs on the Tasker wiki and you’ll be up to speed in no time.

Change Log

The profiles and tasks include a lot of 'wait' times. These can be reduced to therefore reduce the time you are syncing and the profile is active. They are set to thresholds that ensure enough time is given to each task - you can adjust these manually depending on your device's performance and testing experience.

[B][U]V2[/U][/B]
Additional wait times added to allow data connection more time after switching from 2g to 3g
Added additional example of [B]%WIFIWORK [/B]
[B]%WIFIWORK [/B]& [B]%WIFIHOME[/B] are reverted correctly to a value of 1 in the exit task
Unneeded split variables cleared for good housekeeping - credit Nacrul
Voice-overs removed (if you want to check your variables are assigning correct, add a pop up or speech anywhere!).
Adjusted positions of data connection to prevent lag.
Added time based notifications to show LAST successful sync
New [B]%INCALL[/B] variable added to ensure 2g/3g switch does not happen during calls *

* The [B]%INCALL[/B] variables are already created in my CPU tutorial [URL="http://xdaforums.com/showthread.php?t=1018245"]here[/URL]. If you are not running these, then you'll need to create two simple profiles:

[B]DuringCall [/B]- the event is '[B]phone offhook[/B]' and in the task 'variable set' [B]%INCALL[/B] to a value of 2 (2 = call active)
[B]EndCall [/B]- the event is '[B]phone idle[/B]' and in the task 'variable set'' [B]%INCALL[/B] to a value of 1 (1= no call is taking place)

The above will come in handy in many other profiles I'm sure...

[B][U]V3[/U][/B]

[COLOR="Red"]REMOVED ALL LOGCAT ACTIONS

[Should the running task be interrupted, the logcat may continue to be written to /sdcard/taskerlogcat.txt. Please check that this file is not present! If it is, delete it.] [/COLOR]

If you are really interested in the logcat contents to see what your device is up to when it has a data connection, V2 is stable and works well - the above considered.

Credit (and apologies) for the above - pasteyface

[B][U]V3.1[/U][/B]

Updated incorrect 'goto' action in the exit task [B]WifiDisVar[/B]. Should have been 'goto' action 7 (not 6). Credit [URL="http://xdaforums.com/member.php?u=3311156"]torsrex[/URL]

[COLOR="Red"]Nothing else has changed from V3, so very easy to change for those currently on V3, no need to download and re-install![/COLOR]

[B][U]V4[/U][/B]

Fixed device-asleep notifications
Adding mobile data controls (equivalent to [B]%WIFIOC[/B] and [B]%WIFIORS[/B])
Added WiFi or Data to notifications so you can tell which your device used to sync.
Added Minimalistic Text task for home-screen widget.
Added days of the week as a context

Bugs

'Sync Successful - %TIME' notifications not cancelled when device asleep - Fixed in V4

Future Requests

* Wifi remaining on when certain SSID's detected - I'll write up the instructions for this soon...

* Data connection to remain on if it was on at the beginning of the task - I'm working on it... Added in V4