Prateek Patel
Prateek Patel

Reputation: 1

How can i get SIM ID of both sim in dual android device...?

By this code i'm getting only one SIM ID

TelephonyManager m = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); 
String phoneNumber = m.getLine1Number();
String simId = m.getSimSerialNumber();
String phoneIMEI = m.getDeviceId();

tvSim.setText("Phone Number : "  + phoneNumber);
tvSimId.setText("SIM ID : " + simId);
tvImei.setText("IMEI" + phoneIMEI);

Upvotes: 0

Views: 1012

Answers (1)

Andrey  Kopeyko
Andrey Kopeyko

Reputation: 1566

There are no general method to get info about second\third\fourth SIM in the device, even to detect their presence ;-(

All dual-SIM mechanisms are vendor-specific. This had been discussed a lot; please use search on stackoverflow.com to see details, and even to get some code sketches.

Upvotes: 1

Related Questions