How to getSimOperator in dual SIM phone android?
<p>I am building an android application where I need a value of "getSimOperator".</p>

<p>I am able to get this value > 21 API version but for the lower version in dual SIM. I am getting a value of SIM1 but not able to get SIM2 value.</p>

<p>How can I get "getSimOperator" value of SIM2 &lt; 21 API version. </p>

<p>I earlier posted a question below is the link
<a href="https://stackoverflow.com/questions/40902128/how-to-get-mcc-and-mnc-below-lollipop-mr1-devices-in-android?noredirect=1#comment69020789_40902128">How to get Mcc and Mnc below LOLLIPOP_MR1</a>.</p>

<p>Someone has referred me a link <a href="https://stackoverflow.com/questions/32707158/dual-sim-android-phone-which-sim-receive-a-call/32871156#32871156">dual sim android phone which sim receive a call</a>.</p>

<p>But I am getting an error while implementing the code of above link. I had listed down the error "java.lang.NoSuchMethodException: getDefault [int]"</p>

<p>Cloud anyone explains me why this error is coming.</p>