才接触android几天时间 对于pendingintent和intent的区别之在哪里,在网上看了好多文章 但是 还是不怎么理解 请教各位大侠帮我看看 谢谢诶

解决方案 »

  1.   

    intent是立即发生的事,pendingintent是即将发生的事
    例如:调用intent会立即跳转。pendingintent一般用于通知Notification去跳转,不会立即跳转,只有你点击了通知才会跳转
      

  2.   

    能不能举个例子 比如 为什么发送短信 监控短信发送的状态之类的 用的是pendingIntent而不是 intent 
      

  3.   

    我模拟 做一短信发送器 Intent sentIntent = new Intent(SENT_SMS_ACTION);  
        PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, sentIntent,  
                0);   
    就像这里