aspose file tools
The moose likes Android and the fly likes Scheduling Date Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Scheduling Date " Watch "Scheduling Date " New topic
Author

Scheduling Date

Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 143
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

Joined: May 14, 2008
Posts: 5536

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().


JBoss In Action
Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 143
Thanks peter , i did the same , used Calendar class to achieve the same .
Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 143
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Scheduling Date
 
Similar Threads
My clairvoyant left thigh
addActionListener problem
Running a thread in background in servlet
Remove Security Warning ..
displaying time