http://www.mathworks.se/help/techdoc/ref/triscatteredinterpclass.html

*Picture from Matlab website
A computer blog as colorful as Lapskaus ingredients ...


// Get the size of the screen
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
// Determine the new location of the window
int w = window.getSize().width;
int h = window.getSize().height;
int x = (dim.width-w)/2;
int y = (dim.height-h)/2;
// Move the window
window.setLocation(x, y);
WifiManager myWifiMananger = (WifiManager) getSystemService(WIFI_SERVICE);
WifiInfo myNetInfo = myWifiMananger.getConnectionInfo();
showIp.append(changeIp(myNetInfo.getIpAddress()) + " \n");
showIp.append(myNetInfo.getSSID() + " ");
List<ScanResult> scanList = myWifiMananger.getScanResults();
for(ScanResult element : scanList){
showIp.append(element.SSID + " Level: " + element.level + " freq : " + element.frequency + " Cap: " + element.capabilities + "\n");
}
//DONT forget that the getIpAddress returns an int value. Convert it to string :
public String changeIp(int ipAddress){
return String.format("%d.%d.%d.%d",
(ipAddress & 0xff),
(ipAddress >> 8 & 0xff),
(ipAddress >> 16 & 0xff),
(ipAddress >> 24 & 0xff));
}
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />