Possible Duplicate:
Broadcast reciever for GPS state?
Is there a listener that can notify me when GPS is activated?
(When user enabled “GPS” button from the notification bar)
I tried using addGpsStatusListener but it is not what I was looking for.
Ok dude, sorry my bad, now I know what you mean, your question is answered here 🙂
Detecting GPS on/off switch in Android phones
The only problem is that it only works on API Level 9 and above. I hope this answer your question.
Stay cool, Stay awesome.
Good Luck