• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scheduling Date

 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Pals

I was trying to set scheduled event after some time and i achieved it through Alarm Manager.

Now i want to schedule event at some future date and time , but not getting a way to set Date in alarm . Please give me directions...


Regards
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the value for AlarmManager.INTERVAL_DAY (or any of the other constants) you will notice that they are millisecond values. So just determine the number of milliseconds between now and the desired wakeup time and pass that value to AlarmManager.set().
 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks peter , i did the same , used Calendar class to achieve the same .
 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Setting the alarm is the right way or i should say the better way or setting an Event in Calendar is better.

If setting an Event in Calendar is better then do you know how to Use Calendar Events , i mean setting and retrieving Events.


Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic