PengdingIntent有4個flag值
- FLAG_CANCEL_CURRENT
當定義了一個PendingIntent后乔遮,再次定義一個PendingIntent對相同的requestCode而言則會將第一個PendingIntent cancle掉(改變的是PendingIntent中的intent的extra)族奢,重新創(chuàng)建一個新的PendingIntent,原先的PendingIntent失去作用滚澜,這樣則只有最新的PendingIntent有效 - FLAG_NO_CREATE
PendingIntent沒有作用丽猬,對消息而言沒有點擊效果 - FLAG_ONE_SHOT
PendingIntent只能被使用一次邮破,多次創(chuàng)建PendingIntent也只能使用第一次創(chuàng)建的 - FLAG_UPDATE_CURRENT
如果對requestCode相同的則會都更新為最新的PendingIntent的Intent的Extra