I am making an application that fetches data from internet like web service,so it requires internet connection.
So when i first click on my application, If internet connection is not available it should show me dialog that Internet connection not available get it connected.And if connection is available then it should be able to work fetch data from internet.
Can anybody guide me how to check if internet connection is available or not?