views:

97

answers:

1

I want to schedule my application.

+3  A: 

try this

// Get the current application descriptor.
ApplicationDescriptor current = ApplicationDescriptor
                        .currentApplicationDescriptor();

// Schedules are rounded to the nearest minute so ensure the
// application is scheduled for at least 1 minute in the future.
ApplicationManager.getApplicationManager().scheduleApplication(
                        current, System.currentTimeMillis() + 60001, true);

For more details you can read this article also. Schedule an application to run at a specific time

Vivart
thanks..it works.
amit
I have a question about this. What happens if the device is rebooted? The scheduled application will be launched or is necesary to schedule it again?
lluismontero