How to check internet connection is active/inactive while wifi is enabled in android
<p>I am making an android application. In this application i am receiving data from server. When Wi-Fi is enabled and internet connection is active in our device then it returns the number of record from the server but whenever wifi is enabled but inernet connection is not active or inactive then it gives the force close. I have already checked the wifi connection is enabled.</p>

<p>Please tell me this how can i check that internet is active in our device.</p>

<p>Thanks for advance</p>
