NOTE: This will NOT work with a plain old $5 car charger. A Dock accessory is a special piece of hardware made by your phone manufacturer that is completely different from a car charger.
With Locale and the Dock Plug-in Condition, your device can automatically perform actions based on whether it is docked in the car, desk, or undocked.
For example, automatically launch an app with the Shortcut setting when docked at home or enable Bluetooth in the car!
This is a plug-in for Locale. It requires "Locale" from the Google Play store, as well as a device that supports a Dock accessory, and a dock.