Hi all!
Is there a way to detect type (cellular or wifi) of network interface on C, without using of jni.
In java it could be done by using "ConnectivityManager".
In android I found that network interfaces could have different names on different devices. On some devices wifi has "wlan0", but on other "eth0", moreover, on chines devices it could have any name.
For cellular network interfaces name starts with "rmnet".
So detection of type based on network interface name is not a solution.
Thanks in advance!