|
 |
10년 전 |
<방법1>
public String getDeviceId ()
Since: API Level 1
Returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available.
Requires Permission: READ_PHONE_STATE
<방법2>
NetworkInfo networkInfo = connection.getActiveNetworkInfo();
WifiInfo wifiInfo = mWifiMgr.getConnectionInfo();
Log.d(TAG,"MAC:"+wifiInfo.getMacAddress());
getDeviceId()는 TelephonyManager.getDeviceId() 입니다.
|
|
추천 : 488 |
추천
목록
|
|