I need to set/change the phone number of the emulator for debugging purposes... Any help would be appreciated...
Thanks :)
I need to set/change the phone number of the emulator for debugging purposes... Any help would be appreciated...
Thanks :)
The accepted answer has nothing to do with changing the default phone number. You need to recompile from source or patch the binary to change the first 7 digits. The last four of the phone number are the emulator's port number. Patching the phone number is detailed at the end of this blog post:
New link (images missing): http://blog.talosintel.com/2013/04/changing-imei-provider-model-and-phone.html
Web archive (slower, with images): https://web.archive.org/web/20150909014941/http://vrt-blog.snort.org/2013/04/changing-imei-provider-model-and-phone.html
Dead link: http://vrt-blog.snort.org/2013/04/changing-imei-provider-model-and-phone.html
http://developer.android.com/guide/developing/tools/emulator.html....
cover this you will come to know to make changes in emulator
hi get phone no by calling getLine1Number() method from TelephonyManager class
TelephonyManager tmgr=(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE) ;
u can return static phone number