Implemented option to perform test network request. This fixes #57.
Test network request is a hardcoded request to _http://clients3.google.com/generate_204_. If an empty 204 response is received, this means that user has active internet connection and that he is fully capable of performing network operations.
This feature can be used in 2 different ways:
either manual test by using hasNetworkConnection(NetworkRequestCheckListener listener) method. If we received response, onResponseObtained() callback will be called, onNoResponse() otherwise
either define in global configuration that we want to use reliable network events. By using this option, hasNetworkConnection(NetworkRequestCheckListener listener) method will automatically be called by ConnectionBuddy when device has active network connection
Implemented option to perform test network request. This fixes #57.
Test network request is a hardcoded request to _http://clients3.google.com/generate_204_. If an empty 204 response is received, this means that user has active internet connection and that he is fully capable of performing network operations.
This feature can be used in 2 different ways: