我想通過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