Disable captive portal detection in android
WifiConfiguration wc = new WifiConfiguration();
String ssid = result.SSID;
wc.SSID ="\""+ AccessPointName+"\"";
wc.status = WifiConfiguration.Status.ENABLED;
wc.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE);
int res = wifiManager.addNetwork(wc);
boolean x= wifiManager.enableNetwork(res, true);
wifiManager.reconnect();
This ssid is using the inactive portal, is there any configuration to stop android from checking the unwitting portal.
+3
source to share