Handling absence of internet connectivity - leocadiotine/Dumbledroid GitHub Wiki

Dumbledroid can warn you if the device has no internet connectivity.

##How it works Dumbledroid throws a NoConnectionException if there is no data connection available. Following is a code example on how to implement it:

try {
	DumbledoreModel model = new DumbledoreModel();
	model.load(myActivity);

} catch (NoConnectionException e) {
    // The device is without internet access.
    // Here is a good place to show a warning to the user.

} catch (Exception e) {
	// Some other error occurred.
}