Cant get AlarmManager and Multiple Notifications to work

后端 未结 1 1906
时光说笑
时光说笑 2021-01-29 05:32

Ok.. I\'m trying to figure out three problems.

  1. I am unable to make AlarmManager notify me
  2. I want to display a different message for each notifier
相关标签:
1条回答
  • 2021-01-29 06:27

    use a different myIntent for each alarm. also, to avoid android optimizing it, add a different data to the intent

    myIntent = new Intent(Notifier.this, MyBReceiver.class);
    data = Uri.withAppendedPath(Uri.parse("anything" + "://something/different");
    myIntent.setData(data);
    
    0 讨论(0)
提交回复
热议问题