LuminiousAndroid
LuminiousAndroid

Reputation: 1577

Sim Info from android devices

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

Answers (1)

rbd
rbd

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

Related Questions