Not getting that to work for me. Even when I change from
import android.net.wifi.WifiInfo;
to
import android.net.wifi.*;
I get a Cannot find Symbol compiler error:
[javac] Compiling 3 source files to /var/folders/tw/wxm50_1d6m9gsft3gf03mys1bllphm/T/android3487329906646626394sketch/bin/classes
[javac] /var/folders/tw/wxm50_1d6m9gsft3gf03mys1bllphm/T/android3487329906646626394sketch/src/processing/test/testmacaddress/testMACaddress.java:21: cannot find symbol
[javac] symbol : variable Context
[javac] location: class processing.test.testmacaddress.testMACaddress
[javac] WifiManager wm = Context.getSystemService(Context.WIFI_SERVICE);
[javac] ^
[javac] /var/folders/tw/wxm50_1d6m9gsft3gf03mys1bllphm/T/android3487329906646626394sketch/src/processing/test/testmacaddress/testMACaddress.java:21: cannot find symbol
[javac] symbol : variable Context
[javac] location: class processing.test.testmacaddress.testMACaddress
[javac] WifiManager wm = Context.getSystemService(Context.WIFI_SERVICE);
[javac] ^
[javac] 2 errors