Call from second sim

This seems to work on a large range of dual sim devices as Motorola, Micromax, HTC, Samsung intent.putExtra(“com.android.phone.extra.slot”, 0); //For sim 1 OR intent.putExtra(“com.android.phone.extra.slot”, 1); //For sim 2 and if doesn’t work try this, In Samsung S duos this works just fine. intent.putExtra(“simSlot”, 0); //For sim 1 OR intent.putExtra(“simSlot”, 1); //For sim 2 unfortunately for … Read more

Android : Check whether the phone is dual SIM

Update 23 March’15 : Official multiple SIM API is available now from Android 5.1 onwards Other possible option : You can use Java reflection to get both IMEI numbers. Using these IMEI numbers you can check whether the phone is a DUAL SIM or not. Try following activity : import android.app.Activity; import android.os.Bundle; import android.widget.TextView; … Read more

Android send sms in Dual SIM Phone

Try the following method where simIndex is 0 for sim1 and 1 for sim2: public void sendSMS(final String number,final String text) { final PendingIntent localPendingIntent1 = PendingIntent.getBroadcast(mContext, 0, new Intent(this.SENT), 0); final PendingIntent localPendingIntent2 = PendingIntent.getBroadcast(mContext, 0, new Intent(this.DELIVERED), 0); if (Build.VERSION.SDK_INT >= 22) { SubscriptionManager subscriptionManager=((Activity)mContext).getSystemService(SubscriptionManager.class); SubscriptionInfo subscriptionInfo=subscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(simIndex); SmsManager.getSmsManagerForSubscriptionId(subscriptionInfo.getSubscriptionId()).sendTextMessage(number, null, text, localPendingIntent1, localPendingIntent2); } … Read more