sim card - How to get your own phone number in Android -


i trying develop application needs phone number of sim card every time new sim card inserted in phone....then use phone number user subscribed online server.i have read many forums , found this

telephonymanager tmgr =(telephonymanager)mappcontext.getsystemservice(context.telephony_service);  mphonenumber = tmgr.getline1number(); 

but said not efficient method.if not efficient method efficient method , cannot use other property sim id or subscriber id etc.i need phone number. appreciated.

as far know, method not return right sim number; depends on sim card itself. if want sim number, can send sms specific phone, it.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -