Android – will telephonymanager.getdeviceid work without SIM card?
•
Android
I have a simple question:
whether
TelephonyManager.getdeviceid();
Will it work without sim_state_absent in the device?
resolvent:
It should work. I just tested it on my CDMA Galaxy nexus and it returned a value, even if it had no SIM card at all. When I ran it on the simulator, it returned a long string of zeros
Update: according to the documentation, getdeviceid() returns the IMEI of the GSM device. Moreover, the IMEI is not a SIM card function and is provided with the device
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码