如何获得Bundle对象

来源:互联网 发布:通用工会财会软件 编辑:程序博客网 时间:2024/06/07 00:38

今天看见一个极光推送的demo

自定义receiver,重写了oncreate()方法,在其中通过intent判断接收广播的状态。

关键来了:

其中的bundle是这样获取的。  Bundle bundle = intent.getExtra();

 

0 0
原创粉丝点击