title: Best way to detect internet connection in android
body: <p>When I upload my data to server via web service I have to check internet connection before upload the data this may costing me time (im using asyntask to check intertnet connection with progress dialog) on the operation even the user may feel some much loading can anyone tell me which is the best way to detect internet connection .</p>