Schedule a BlackBerry application

2019-01-18 17:10发布

问题:

I want to schedule my application.

回答1:

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