才接触android几天时间 对于pendingintent和intent的区别之在哪 大侠们进来看看呀
才接触android几天时间 对于pendingintent和intent的区别之在哪里,在网上看了好多文章 但是 还是不怎么理解 请教各位大侠帮我看看 谢谢诶 --------------------编程问答-------------------- intent是立即发生的事,pendingintent是即将发生的事例如:调用intent会立即跳转。pendingintent一般用于通知Notification去跳转,不会立即跳转,只有你点击了通知才会跳转 --------------------编程问答-------------------- 能不能举个例子 比如 为什么发送短信 监控短信发送的状态之类的 用的是pendingIntent而不是 intent --------------------编程问答-------------------- 你在哪发短信,在哪监控? --------------------编程问答-------------------- 我模拟 做一短信发送器
Intent sentIntent = new Intent(SENT_SMS_ACTION);
PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, sentIntent,
0);
就像这里
--------------------编程问答-------------------- 你这个是发送短信之后把广播发出去
补充:移动开发 , Android