Android 的notification 的intent 传值
来源:互联网 发布:三国群英传8武将数据 编辑:程序博客网 时间:2024/04/30 13:36
notification用Intent传值的时候如果收不到,可以用bundle来传。
发送notify:
Intent intent=new Intent(this,MainActivity.class);Bundle bundle=new Bundle();bundle.putString("lvbo","result");intent.putExtras(bundle);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0);
在onNewIntent接收
@Overrideprotected void onNewIntent(Intent intent) { super.onNewIntent(intent);
String result=getIntent().getExtras().getString("lvbo");
}
0 0
- Android 的notification 的intent 传值
- Notification加上Intent的练习
- Android 如何设置 Notification 中PendingIntent 的 Intent
- ANDROID+后台Task+Notification++Intent+实例对象的配置
- 如何设置 Notification 中PendingIntent 的 Intent
- 如何设置 Notification 中PendingIntent 的 Intent
- 如何设置 Notification 中PendingIntent 的 Intent
- Android的Intent传值
- Android问题集锦---显示多个notification时PendingIntent的Intent被覆盖
- Android-Notification的使用
- Android Notification的使用
- android Notification 的使用
- android Notification 的使用
- Android Notification 的使用
- Android-Notification的使用
- android Notification 的使用
- android Notification 的使用
- android Notification 的使用
- 进制转换之 十进制转换成m进制
- 线程同步之条件变量
- mac环境的apk反编译工具使用
- apple-touch-icon-precomposed 和 apple-touch-icon属性区别
- java transient简介
- Android 的notification 的intent 传值
- C Socket编程之Connect超时
- Gradle配置一次性打包不同的渠道
- Android 双线边框
- HTML5之SVG 2D入门8 - 文档结构
- IOS UITableView索引排序功能
- oj水题-发金牌
- java设计模式之适配器模式
- 防止SQL注入