public String getMacInfo(){
String mac = "";
WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
if(wifiInfo.getMacAddress()!=null){
mac = wifiInfo.getMacAddress();
} else {
mac = "Fail";
}
return mac;
}
I add these code in my test case ,there is a error
showing in "mContext" the line 3.
Who can help me???
Thank you !