How to pass intent with extras to an already running activity

后端 未结 2 1212
攒了一身酷
攒了一身酷 2020-12-30 22:12

I have a BroadcastReceiver which launches a HomeActivity with some information passed with the extras.

What happens when the activity is a

2条回答
  •  隐瞒了意图╮
    2020-12-30 23:03

    Just extending Cory Roy's answer you have to define "SingleTop" in AndroidManifest.xml too.

    It seems that extending android.support.v7.app.ActionBarActivity this method does not work...

提交回复
热议问题