0
現在我正在嘗試在android中獲取平板電腦和智能手機的mac地址。無法獲取平板電腦的mac地址在android
我試着用下面的代碼。
TelephonyManager tm = (TelephonyManager)Current_activity_name.this.getSystemService(Context.TELEPHONY_SERVICE);
String str_macid = tm.getDeviceId();
此代碼僅適用於智能手機,但不適用於平板電腦。爲什麼?
建議請..
感謝您的寶貴時間!..