1

I want to schedule my application.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44
amit
  • 169
  • 1
  • 11

1 Answers1

6

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
  • 14,900
  • 6
  • 36
  • 74