Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why emulator giving IMEI number 000000000000000

I found many post regarding this but not properly given answer. My application needs IMEI number ,i did that but it is showing 000000000000000(15 zero's). it is working fine with device but i want it run properly on my emulator. i want some unique number except these zero. if any programitically solution here .post your answer's. i have to set this number instead of (15 zeros) "352373051009616"

TelephonyManager telephonyManager =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

String imei = telephonyManager.getDeviceId();

textDeviceID2.setText("Device id:-" +imei);

any possible solution (programitically as well as hardcoded)

like image 976
Adb Avatar asked Jul 03 '12 04:07

Adb


1 Answers

That's what the emulator uses as the IMEI. If you really need or want to change it, you can open up the emulator executable with a hex editor and modify it as per http://codepainters.wordpress.com/2009/12/11/android-imei-number-and-the-emulator/

like image 55
Darshan Rivka Whittle Avatar answered Oct 16 '22 01:10

Darshan Rivka Whittle