user2462298
user2462298

Reputation: 41

Android - Getting SImcard Number ? Will it work for all the Network Providers?

I am planning to get the Simcard number inserted in the android devices. So for that , i am trying this coding snippet,

TelephonyManager tm = (TelephonyManager)this.getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); String phoneNumber= tm.getSimcardNumber();

my question is , Whether I can get Simcard Number of all the Network Providers or not. Please suggest me . Looking forward to the reply.

Regards Anand

Upvotes: 0

Views: 386

Answers (1)

saber safavi
saber safavi

Reputation: 452

some of mobile network providers store sim number in their sim cards but lot of them dont did this because of network flexibility like MTN

you cant trust to functions like this . in same situation i used recieved text messages to get phone number

Upvotes: 0

Related Questions