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
Post a Comment