Sending extras to BroadcastReceiver

后端 未结 3 1601
独厮守ぢ
独厮守ぢ 2021-01-15 01:07

I have an Activity that runs the following code (time and interval are defined):

Intent buzzIntent = new Intent(getBaseContext(), BuzzReceiver.class);
Pendin         


        
3条回答
  •  伪装坚强ぢ
    2021-01-15 01:16

    Have you tried calling buzzIntent.putExtra() before you pass buzzIntent to PendingIntent.getBroadcast()?

提交回复
热议问题