我正在尝试通过 smsManager 发送消息。但在某些三星手机中,它无法发送,也没有显示错误。
这是我的代码
try {
SmsManager sms = SmsManager.getDefault();
Toast.makeText(context, "" + phoneNumber + ": " + messageText, Toast.LENGTH_SHORT).show();
PendingIntent sentPI = PendingIntent.getBroadcast(getActivity(), 0, new Intent("SMS_SENT"), 0);
PendingIntent deliveredPI = PendingIntent.getBroadcast(getActivity(), 0, new Intent("SMS_DELIVERED"), 0);
sms.sendTextMessage(phoneNumbers, null, messageText, sentPI, deliveredPI);
} catch (Exception e) {
Toast.makeText(context, "Sms not Send " + e, Toast.LENGTH_SHORT).show();
e.printStackTrace();
}
即使我使用过com.klinker.android.send_message
,但它甚至没有执行
[2013-10-29 13:57:50 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/gson/JsonSerializer;
[2013-10-29 13:57:50 - kluebook] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/gson/JsonSerializer;
`