deliveryIntent是说如果当短信发送到收件人时,你会收到这个deliveryIntent
sentIntent则是用来判断短信是否发送成功,如果你没有sim卡,或者网络中断,则可以通过这个itent来判断。简单的说:
deliveryIntent是判断是否“已送达”
sentIntent是判断是否“发送成功”
sentIntent则是用来判断短信是否发送成功,如果你没有sim卡,或者网络中断,则可以通过这个itent来判断。简单的说:
deliveryIntent是判断是否“已送达”
sentIntent是判断是否“发送成功”
怎么看到这个判断呢?我试着传了一个Action进去,可是接收的时候却没有反应,我想在发送成功或者接受成功的时候能给一个toast,该怎么写呢?
PendingIntent mPI = PendingIntent.getBroadcast
(EX05_03.this, 0, new Intent("android.intent.action.123"), 0);