0

For Android Q device the WifiManager AddNetwork API gets depreciated. So we referred the documentation.

For AddNetwork : https://developer.android.com/reference/android/net/wifi/WifiManager#addNetwork(android.net.wifi.WifiConfiguration) Says to use the WifiNetworkSpecifier and AddNetworkSuggestion.

If i use the same the the wifi network on the suggestion list is not get added on the device.

It asked for the username and password when connecting [These configuration is already set programatically]

Also gone through another documentation which says how to connect wifi on Android Q device using WifiNetworkSpecifier using connecting manager.

https://developer.android.com/guide/topics/connectivity/wifi-bootstrap#java

This is also getting the same result.

Used same type of codes which have been used on the above two link.

Note: The project is in Xamarin.Android (C#).

Expected result: The wifi has to be connected with the given configured values.

Actual result: the wifi is not connecting, and it asked for the user name and password manually.

SelvaV
  • 11
  • 4

0 Answers0