PendingIntent getActivity
来源:互联网 发布:淘宝工具软件 编辑:程序博客网 时间:2024/06/05 09:57
PendingIntent getActivity Flag:
public static final int FLAG_CANCEL_CURRENT
Added in API level 1Flag indicating that if the described PendingIntent already exists, the current one should be canceled before generating a new one. For use with getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), and getService(Context, int, Intent, int).
You can use this to retrieve a new PendingIntent when you are only changing the extra data in the Intent; by canceling the previous pending intent, this ensures that only entities given the new data will be able to launch it. If this assurance is not an issue, consider FLAG_UPDATE_CURRENT.
Constant Value: 268435456 (0x10000000)
public static final int FLAG_NO_CREATE
Added in API level 1
Flag indicating that if the described PendingIntent does not already exist, then simply return null instead of creating it. For use with getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), and getService(Context, int, Intent, int).
Constant Value: 536870912 (0x20000000)
public static final int FLAG_ONE_SHOT
Added in API level 1
Flag indicating that this PendingIntent can be used only once. For use with getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), and getService(Context, int, Intent, int).
If set, after send() is called on it, it will be automatically canceled for you and any future attempt to send through it will fail.
Constant Value: 1073741824 (0x40000000)
public static final int FLAG_UPDATE_CURRENT
Added in API level 3
Flag indicating that if the described PendingIntent already exists, then keep it but replace its extra data with what is in this new Intent. For use with getActivity(Context, int, Intent, int), getBroadcast(Context, int, Intent, int), and getService(Context, int, Intent, int).
This can be used if you are creating intents where only the extras change, and don't care that any entities that received your previous PendingIntent will be able to launch it with your new extras even if they are not explicitly given to it.
Constant Value: 134217728 (0x08000000)
0 0
- PendingIntent getActivity
- PendingIntent android.app.PendingIntent.getActivity的使用
- Notification使用以及PendingIntent.getActivity()
- Notification使用以及PendingIntent.getActivity()
- AppWidget应用(二)---PendingIntent 之 getActivity
- AppWidget应用(二)---PendingIntent 之 getActivity
- PendingIntent.getActivity()启动不起来Activity的解决办法
- 【Android 非常基础】多通知 PendingIntent.getActivity参数使用
- Android PendingIntent的getActivity()、getBroadcast()、getService()方法的区别
- Android 通知栏 PendingIntent.getActivity(context, requestCode, intent, flags);参数详解
- PendingIntent
- PendingIntent
- PendingIntent
- PendingIntent
- PendingIntent
- PendingIntent
- PendingIntent
- PendingIntent
- 第17周项目6-学生成绩统计(1)
- STM32中GPIO的8种工作模式!(转)
- ceph存储 centos7搭建samba服务
- 深入理解C++的动态绑定和静态绑定
- redis代码结构之三类型库-list
- PendingIntent getActivity
- Oracle XE Installation in Linux CentOS
- cocos2dx3.2 往模板build_native.py加入java库脚本
- 聊聊高并发(三十七)整理一下并发基础中的一些知识点
- 1163 访问艺术馆
- Android控件TextView学习一
- SQL Server 2008 R2
- Android SmartImageView源码分析
- LCT系列