amidgeha Active Member Licensed User Longtime User Apr 18, 2017 #1 Is there a way to change and save WiFi proxy on all Android versions?
Erel B4X founder Staff member Licensed User Longtime User Apr 19, 2017 #2 There are several wifi related libraries: https://www.b4x.com/android/forum/pages/results/?query=wifi&prefix=1,2,3,17,24,29 I'm not sure whether any of them supports this. You will need to check. Upvote 0
There are several wifi related libraries: https://www.b4x.com/android/forum/pages/results/?query=wifi&prefix=1,2,3,17,24,29 I'm not sure whether any of them supports this. You will need to check.
amidgeha Active Member Licensed User Longtime User Apr 19, 2017 #3 Erel said: There are several wifi related libraries: https://www.b4x.com/android/forum/pages/results/?query=wifi&prefix=1,2,3,17,24,29 I'm not sure whether any of them supports this. You will need to check. Click to expand... I wrapped this library using its AAR Library but it works only on Lollipop devices B4X: public void changeProxySettings(BA ba, String host, int port) { try { WifiProxyChanger.changeWifiStaticProxySettings(host, port, ba.context); } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | InvocationTargetException | NoSuchFieldException | IllegalAccessException | NullWifiConfigurationException | ApiNotSupportedException e) { e.printStackTrace(); } } Upvote 0
Erel said: There are several wifi related libraries: https://www.b4x.com/android/forum/pages/results/?query=wifi&prefix=1,2,3,17,24,29 I'm not sure whether any of them supports this. You will need to check. Click to expand... I wrapped this library using its AAR Library but it works only on Lollipop devices B4X: public void changeProxySettings(BA ba, String host, int port) { try { WifiProxyChanger.changeWifiStaticProxySettings(host, port, ba.context); } catch (ClassNotFoundException | NoSuchMethodException | InstantiationException | InvocationTargetException | NoSuchFieldException | IllegalAccessException | NullWifiConfigurationException | ApiNotSupportedException e) { e.printStackTrace(); } }