Notification at Specific Time using BroadcastReceiver and AlarmManager

后端 未结 3 1221
臣服心动
臣服心动 2021-01-03 17:13

I want to send notification at specific time using broadcast receiver. many tutorials videos and also answers has been read in this regard and all of them was clear. but I c

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 17:25

    The problem was detected, as I searched again in this regard I found that when Calendar has been set for 10 Second calendar.set(Calendar.SECOND, 10);it means BroadcastReceiver() must trigger Notification after 10 Second. it doesn't care the time of day. question still exist, how we can tell broadcastreceiver() to Show Notification based on the time of day that we defined in the CODE exactly? such as 16:33:24 (hh:mm:ss)

提交回复
热议问题