Checking internet connection on click button : <p>I'd like to create a button to go to another activity for webview. Before going to the next activity I like to check internet connection:
if device is connected, OK, go to the next activity.
if not, Toast a message like this "No Internet Connection". However, I don't want the device go to the respected activity.
I've tried different method explained in this website but didn't work.
Tnx a bunch guys.</p>
