Reputation: 1577
I want to know the sim information like phone number,Registered name..etc from android devices throgh programatically.I go through this but did not get any success. Can anyone Please provide some help... Thanks in advance !!
Upvotes: 0
Views: 3844
Reputation: 187
you can try out this API but it doesn't work on all devices:
TelephonyManager telephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
simNum = telephonyMgr.getLine1Number();
other than that you can read MCC\MNC, network operator and IMEI which could help you identify the device\user.
Upvotes: 1