Ho to get IMEI Number of any Devices?


private String mDeviceImei;
public String getIMEI() {
mDeviceImei = ((TelephonyManager) getSystemService(TELEPHONY_SERVICE))
.getDeviceId();
if (mDeviceImei == null || mDeviceImei == "358673013795895") {
mDeviceImei = ((WifiManager) (getSystemService(WIFI_SERVICE)))
.getConnectionInfo().getMacAddress();
}
return mDeviceImei;
}
}

Comments

Popular posts from this blog

Bluetooth Data Transfer Example

DeCompile .apk file on ubuntu 14.04