TelephonyManager telephony = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
Class<?> telephonyClass = Class.forName(telephony.getClass().getName());
Class<?>[] parameter = new Class[1];
parameter[0] = int.class;
Method getSimID = telephonyClass.getMethod("getNetworkOperatorExt", parameter); //name of class
Object[] obParameter = new Object[1];
obParameter[0] = 0; //SIM ID 0,1...
Object ob_phone = getSimID.invoke(telephony, obParameter);
String value = ob_phone.toString();