create alarm object and pass details in the alarm intent