Check Network Availability

Apps that communicates with web services needs to check network availability before calling them. Failing do so may break the app when there are no network present. You can use following code segment/method to check the network availability. If network available then...