amit
amit

Reputation: 169

Schedule a BlackBerry application

I want to schedule my application.

Upvotes: 1

Views: 900

Answers (1)

Vivart
Vivart

Reputation: 15313

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

Upvotes: 6

Related Questions