Get the Intent that woke up my activity

后端 未结 2 594
时光说笑
时光说笑 2021-01-22 14:05

I\'m developing an application that includes a broadcast receiver. The broadcast receiver sets a notification onReceive(), which includes a pending Intent

Inten         


        
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 14:31

    I think the problem is that when an activity is woken, getIntent() returns the intent that first started it.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题