Meet Tasker, a state-of-art automation tool for Android that can:
- turn on GPS when Google Maps starts; turn it off when Google Maps closes,
- show a list of your music apps when you plug in headphones,
- turn off pattern lock while on home WiFi,
- read incoming text messages aloud,
- even more,
- a lot of more,
- even a lot of more.
It isn't free (of course!). I costs... 5 bucks. But it is worth every damn cent spent on it!
And, if above is still not enough for you...