Fix for captive networks on Android

Hi Paul,

This is the fix for Captive Network on Android.
It adds the class to the Android project so issue #89 is fixed. But it also handles captive network detection and throws now the exception.