【发布时间】:2015-11-05 08:39:45
【问题描述】:
我想发送一次短信。如果已经发送,我想跳过代码或其他内容。
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();
}
}
【问题讨论】:
标签: android eclipse sms phone-call