<span id="Label3">The flag flag of pendingintent is as Follows: flag_cancel_current: if an identical Pendingintent object already exists in the current system, the existing pendingintent will be canceled first, Then regenerate a pendingintent object. Flag_no_create: if the same Pendingintent object does not exist in the current system, the system will not create the Pendingintent object and return null Directly. Flag_one_shot: the pendingintent only works Once. After the Pendingintent object is triggered by the send () method, pendingintent will automatically call cancel () to destroy, and if you call the Send () method again, The system will return a Sendintentexception. Flag_update_current: If there is a pendingintent equivalent pendinginent that you describe in the system, then the Pendingintent object will be used by the System. however, The new intent is used to update the intent object data in the previous pendingintent, such as extras in the update Intent. overall, the implementation of Pendingintent is relatively simple, mainly with android-specific remote services (sms, notifications, alarms, etc.), The general application does not need to use. Pendingintent's mechanism, This blog post is very clear http://my.oschina.net/youranhongcha/blog/196933 simply, pendingintent can be understood as a intent with contextual information ( Note that it is not inherited intent), can delay the execution of intent operations, a bit like the system broadcast, once the request is made out of the activity independent execution in the System. is essentially a binder for agent Communication.<p>Android-understanding pendingintent</p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.