This question already has an answer here:
- set android alarm at specific time 2 answers
i am making an reminder application. If a user clicks the alert button, the alarm should be set for next 3 hours and a notification should be shown in the status bar after 3 hours completion.
I guess i have to use Alarm Manager to do this , but i dont know how to add 3 hours to current system time and set notification for that time.
follow it