Possible Duplicate:
Enable GPS programatically like Tasker
I'm trying to write an app that's used for transmitting GPS coordinates in an emergency. Is there a way to enable the GPS without requiring user input (I'd like to avoid as much user interaction as possible)