why does it return null value?
is there a way for assigning a device’s id to each an emulator.
why does it return null value? is there a way for assigning a device’s
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is performing as expected, as the emulator does not have an IMEI number.
http://developer.android.com/reference/android/telephony/TelephonyManager.html#getDeviceId()
If you test for
null, you can return your own fake device id for testing purposes.