I'm currently migrating my application to Android Q. I want to list all configured WiFi networks and before Q I was able to do so with the function getConfiguredNetworks from the WiFiManager. Sadly this method was deprecated on API level 29 and returns an empty list on Android Q devices.
The deprecation comment only refers to cases where I also want to connect to these networks. I do not want to do this, I just want to list the networks with their name and get their internal id
. Do you have any ideas how I should do this in Q?