I would need to check the wifi is on or off in the phone at the runtime?
if it is not connected, i want to show dialog and goto directly Setting/Wireless Controls to enable it by user.
its for both wifi and Gps staus of the phone. How to do it? which intent to wake for this? Any idea?
You can use the WifiManager class to get the state of Wi-Fi.
See this question for opening Wi-Fi settings. And this question for GPS status.
To check if the device is connected via mobile or wifi you can use this code:
and then use it like that: