我想通过SmsManager发送短信的工作,但在第一SIM我在这种情况下,没有平衡短信失败。所以如何仅通过第二个SIM卡从我的应用程序发送短信。 其他应用程序,如whatsApp在注册时从我的第二个SIM卡发送味精,如果不是在第一个sim.so平衡可用。我认为它可能。请帮我发送短信双卡Android手机通过SmsManager
String mobileNo = phoneNumber1.getText().toString();
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(mobileNo, null, "BAL", null, null);
Toast.makeText(getApplicationContext(), "SMS Sent!",
Toast.LENGTH_LONG).show();
} catch (Exception e) {
Toast.makeText(getApplicationContext(),
"SMS faild, please try again later!",
Toast.LENGTH_LONG).show();
e.printStackTrace();
}
看到http://stackoverflow.com/questions/5255147 0 SIM1和1/dual-sim-card-android –
@shayanpourvatan谢谢你,但它不是我的答案。因为whatsApp在注册时发送msg在我的第二个sim,所以我认为它可能。请帮我 – Ranu
我不认为WhatsApp发送短信,它只收到一个。 – hitmaneidos