Possible Duplicate:
How can I enable or disable the GPS programmatically on Android?
I have searching on how to toggle GPS programmatically, the standard answer is that it's not possible.
If this is really the case how do all the various power/toggle related widgets manage to toggle GPS with one click and no warning. The market place is full of examples that show it is possible.
So how?