0
我想發短信一次。如果已經發送,我想跳過代碼或somthing。只發送短信給未接電話一次Android Eclipse
Log.i("Send SMS", "");
String phoneNo = incomingNumber;
String newN = incomingNumber;
if (newN!=oldN)
{
SmsManager smsManager = SmsManager.getDefault();
String message = "im on a meeting call you later -ExAutoSmS-";
try {
smsManager.sendTextMessage(phoneNo, null, message, null, null);
oldN = incomingNumber;
} catch (Exception e) {
e.printStackTrace();
}
}