getExtra from Intent launched from a pendingIntent

后端 未结 5 784
既然无缘
既然无缘 2020-12-02 08:31

I am trying to make some alarms after the user selects something with a time from a list and create a notification for it at the given time. My problem is that the \"shownam

5条回答
  •  感情败类
    2020-12-02 09:12

    I was had same problem. I solved it with setting an action to intent as suggested by @aioobe here, and my intent works like a magic.

    Here what i did

      ` intent.putExtra("Name", mName);
        intent.putExtra("dateTime", newdate);
        intent.setAction("" + Math.random());`
    

    Hope it will help someone, happy coding..! :)

提交回复
热议问题