0
I wonder what is returned on android in Class TelephonyManager
when I call the method getDeviceId
, the device has no chip. Because I need an identifier for the device and I thought about using the IMEI, but I don’t have a device without CHIP to test the feedback of that information. Follow the code below.
TelephonyManager tManager = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
String uid = tManager.getDeviceId(); //Serial do dispositivo android
Hiago, if I’m not mistaken the IMEI does not depend on the phone having chip or not, it depends only on the slots. Another alternative is to use ANDROID_ID, which is generated on the first boot of any Android device, including tablets. Take a look at the documentation of ANDROID_ID
– Wakim
Okay, thanks for your attention.
– Hiago Souza