public static String getMacAddress(Context context) {

 WifiManager wifiman = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);        

 WifiInfo wifiinfo = wifiman.getConnectionInfo();  


 String strMacAddress = "";

 if (wifiinfo.getMacAddress() != null)  {

   strMacAddress = wifiinfo.getMacAddress();

 }  

 return strMacAddress;

}

블로그 이미지

은호아빠

여행, 맛집, 일상, 프로그래밍, 개발자, 윈도우, 웹, jsp, spring, db, mysql, oracle, c#

,