Hi in my app i am checking whether the SIM-Card is present or not, now the issue is in dual SIM phone , primary master SIM slot is CDMA and doesn't contain any SIM where as the secondary SIM slot is GSM and contains the SIM .
since the below code is referring to master SIM slot control always goes to else part so how do i get access to slave SIM , Please help.
tm = (TelephonyManager)activity.getSystemService(Context.TELEPHONY_SERVICE);
//gets the current TelephonyManager
if (tm.getSimState() != TelephonyManager.SIM_STATE_ABSENT){
//the phone has a sim card
} else {
displayToast("Please insert sim card");
finish();
}