I need to know the connection data wifi.
IP, mask, gateway, DNS...
With versions <10, I read the file
How can i use the NetworkStatsManager or ConnectivityManager classes ?
IP, mask, gateway, DNS...
With versions <10, I read the file
Starting with version 10, access to the directory is not allowed.arpFile.Initialize(File.OpenInput("/proc/net/","arp"))
Restriction on access to /proc/net filesystem
On devices that run Android 10 or higher, apps cannot access /proc/net, which includes information about a device's network state. Apps that need access to this information, such as VPNs, should use the NetworkStatsManager or ConnectivityManager class.
How can i use the NetworkStatsManager or ConnectivityManager classes ?