Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens if you set the flag on a PendingIntent to 0?

What exactly happens when you set the flag on a pending intent to 0? Does it just not raiise a flag or does it default to one of the others?

like image 661
ninjasense Avatar asked Dec 23 '10 23:12

ninjasense


1 Answers

No this is the "default" behavior of creating a new PendingIntent regardless if one already exists or not. If you want more specialized behavior, like cancel an existing PendingIntent if the underlying Intent is the same, or update such an existing PendingIntent, then you should use the various flags you can find in the PendingIntent class.

like image 140
michaelg Avatar answered Nov 12 '22 10:11

michaelg