Schedule a BlackBerry application

后端 未结 1 1687
北恋
北恋 2020-12-10 10:05

I want to schedule my application.

相关标签:
1条回答
  • 2020-12-10 11:00

    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

    0 讨论(0)
提交回复
热议问题