I am trying to find the name of the Wifi interface through a call to android.os.SystemProperties.get("wifi.interface").
On most devices I have used, it seems to work fine, but on Samsung Galaxy Tab 2 (Samsung GT-P5100) and Samsung Galaxy Note 2 (Samsung GT-P7100), I am getting an empty string in response. Can anyone help me understand what is wrong here, or how I can get the Wifi interface name more reliably? I have seen the option to go through all network interfaces, get their IP addresses and get the IP address of the device and match the two. Will try it, but are there any other options?